diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-14 13:17:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-14 13:17:56 +0200 |
commit | 10086eb832b17b596ce8db07efd910d353cce514 (patch) | |
tree | cf6599a71b6ce3267ce6a382b0bc0c46fb3fdb28 /archaeological_warehouse/models.py | |
parent | c0100f8ef9b91513dd510dce8e72fadc95d13c48 (diff) | |
download | Ishtar-10086eb832b17b596ce8db07efd910d353cce514.tar.bz2 Ishtar-10086eb832b17b596ce8db07efd910d353cce514.zip |
Find form configuration
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 48cc042f8..9b0ff2e86 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -81,7 +81,7 @@ class Warehouse(Address, DashboardFormItem, OwnPerms): ) def __unicode__(self): - return u"%s (%s)" % (self.name, unicode(self.warehouse_type)) + return self.name def _get_base_image_path(self): return u"{}/{}".format(self.SLUG, slugify(self.name)) @@ -89,7 +89,7 @@ class Warehouse(Address, DashboardFormItem, OwnPerms): @property def associated_filename(self): return datetime.date.today().strftime('%Y-%m-%d') + '-' + \ - slugify(unicode(self)) + slugify(unicode(self)) @classmethod def get_query_owns(cls, ishtaruser): |