From 7b232b0280fbb7de5965d9e0df353f58253bf0fb Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 31 Oct 2022 22:51:43 +0100 Subject: [PATCH] Improve cap display in admin --- src/character/models/capabilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character/models/capabilities.py b/src/character/models/capabilities.py index b592551..1bc0eea 100644 --- a/src/character/models/capabilities.py +++ b/src/character/models/capabilities.py @@ -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