diff options
Diffstat (limited to 'archaeological_files/models.py')
| -rw-r--r-- | archaeological_files/models.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index ae6ad726e..19fad6b04 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -25,7 +25,7 @@ from django.db.models import Q, Count, Sum  from django.db.models.signals import post_save, m2m_changed  from django.utils.translation import ugettext_lazy as _, ugettext -from ishtar_common.utils import cached_label_changed +from ishtar_common.utils import cached_label_changed, shortify  from ishtar_common.models import GeneralType, BaseHistorizedItem, \      HistoricalRecords, OwnPerms, Person, Organization, Department, Town, \ @@ -144,8 +144,8 @@ class File(BaseHistorizedItem, OwnPerms):              items[0] = unicode(self.towns.all()[0])          items.append("-".join((unicode(self.year),                                 unicode(self.numeric_reference or '0')))) -        items += [unicode(getattr(self, k))[:36] -                  for k in ['internal_reference',] if getattr(self, k)] +        items += [shortify(unicode(getattr(self, k))) +                  for k in ['internal_reference', 'name'] if getattr(self, k)]          return settings.JOINT.join(items)      def grouped_parcels(self):  | 
