mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-12-22 22:01:48 +01:00
Improve cap display in admin
This commit is contained in:
parent
41417e660c
commit
7b232b0280
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Capability(DocumentedModel, UniquelyNamedModel, TimeStampedModel, models.M
|
|||
verbose_name_plural = "Capacités"
|
||||
|
||||
def __str__(self):
|
||||
description = f"{self.name} - {self.path.name}"
|
||||
description = f"{self.name} - {self.path.display_name} rang {self.rank}"
|
||||
if self.path.related_to:
|
||||
description += f" ({self.path.related_to.name})"
|
||||
return description
|
||||
|
|
Loading…
Reference in a new issue