diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-18 17:40:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-18 17:40:40 +0100 |
commit | ab8666e7140f64698c2755b72ec5b322facae952 (patch) | |
tree | 796bed23b921d02729bfead39956225f44a42a2d /ishtar_common | |
parent | 46c182b92e2034a3698889b3f430d50f2d589266 (diff) | |
download | Ishtar-ab8666e7140f64698c2755b72ec5b322facae952.tar.bz2 Ishtar-ab8666e7140f64698c2755b72ec5b322facae952.zip |
Sites: add town form
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
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=''): """ |