mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +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