From 34a462b58fa629af474bada00a5eba366a07ca59 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 23 Mar 2018 13:57:12 +0100 Subject: Step by step: large improvments on step display (refs #3975) Show modified, sheet access for existing items, link between created, updated fields and associated column. --- ishtar_common/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 883c12ab9..6518ea763 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -459,6 +459,10 @@ class GeneralType(Cached, models.Model): def natural_key(self): return (self.txt_idx, ) + @property + def explicit_label(self): + return u"{} ({})".format(self.label, self._meta.verbose_name) + @classmethod def create_default_for_test(cls): return [cls.objects.create(label='Test %d' % i) for i in range(5)] -- cgit v1.2.3