diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-09-19 13:18:57 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-09-19 13:18:57 +0200 |
commit | 670c5f4cb71c103bb2cac8e390b15cf44fa9ec83 (patch) | |
tree | 07b8709366b2a74b952474b3a4706df3ab24d2c6 /archaeological_finds | |
parent | f2f9558d0d303a7e0c2f16c2b5c2f58fa105ed0a (diff) | |
download | Ishtar-670c5f4cb71c103bb2cac8e390b15cf44fa9ec83.tar.bz2 Ishtar-670c5f4cb71c103bb2cac8e390b15cf44fa9ec83.zip |
Fix default label for find with no base find
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index ff173619b..ea111f0d2 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1015,10 +1015,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, return _(u"FIND") def __unicode__(self): - lbl = settings.JOINT.join( - [getattr(self, attr) for attr in ('administrative_index', 'label') - if getattr(self, attr)]) - return lbl + return self.cached_label or u"" @property def short_label(self): |