summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
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)]