summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commita96f115b15e5e436204361e74a8f8301caf202dd (patch)
tree796bed23b921d02729bfead39956225f44a42a2d /ishtar_common/models.py
parentbef605e10e590d9277af782594091a1a31072246 (diff)
downloadIshtar-a96f115b15e5e436204361e74a8f8301caf202dd.tar.bz2
Ishtar-a96f115b15e5e436204361e74a8f8301caf202dd.zip
Sites: add town form
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 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=''):
"""