From ab8666e7140f64698c2755b72ec5b322facae952 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 18 Feb 2018 17:40:40 +0100 Subject: Sites: add town form --- ishtar_common/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 14b9849e1..88ad3009a 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -456,6 +456,10 @@ class GeneralType(Cached, models.Model): def short_label(self): return self.label + @property + def name(self): + return self.label + @classmethod def get_or_create(cls, slug, label=''): """ -- cgit v1.2.3