From b1e7aaec0cf7d0799a3a91821c7ba322e4aab7e8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 19 Sep 2018 13:18:57 +0200 Subject: Fix default label for find with no base find --- archaeological_finds/models_finds.py | 5 +---- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.3