mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48: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"
|
verbose_name_plural = "Capacités"
|
||||||
|
|
||||||
def __str__(self):
|
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:
|
if self.path.related_to:
|
||||||
description += f" ({self.path.related_to.name})"
|
description += f" ({self.path.related_to.name})"
|
||||||
return description
|
return description
|
||||||
|
|
Loading…
Reference in a new issue