diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-07 23:13:48 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-07 23:13:48 +0100 | 
| commit | 74711e058edeb66d0e3cfb9f8277cab0accf2519 (patch) | |
| tree | 99eb36b978bf9538e3c75e86dad00891f8995ca2 /archaeological_files/models.py | |
| parent | 3eb736d29728193d957bf2c1184768b2b2c2f3b0 (diff) | |
| download | Ishtar-74711e058edeb66d0e3cfb9f8277cab0accf2519.tar.bz2 Ishtar-74711e058edeb66d0e3cfb9f8277cab0accf2519.zip  | |
No town label fix (refs #2980)
Diffstat (limited to 'archaeological_files/models.py')
| -rw-r--r-- | archaeological_files/models.py | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index a01a6f99e..93cbdff13 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -368,11 +368,13 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,          return Parcel.grouped_parcels(list(self.parcels.all()))      def get_town_label(self): -        lbl = unicode(_('Intercommunal')) +        lbl = unicode(_(u'Multi-town'))          if self.main_town:              lbl = self.main_town.name          elif self.towns.count() == 1:              lbl = self.towns.all()[0].name +        elif self.towns.count() == 0: +            lbl = unicode(_(u"No town"))          return lbl      def get_department(self):  | 
