diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 3ca830aa3..d8d3c3213 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -579,9 +579,11 @@ class Person(Address, OwnPerms) :          return lbl      def full_label(self): -        return u" ".join([unicode(getattr(self, attr)) -                         for attr in ('title', 'surname', 'name', 'attached_to') -                         if getattr(self, attr)]) +        values = [unicode(_(self.title))] +        values += [unicode(getattr(self, attr)) +                   for attr in ('surname', 'name', 'attached_to') +                               if getattr(self, attr)] +        return u" ".join(values)  class IshtarUser(User):      person = models.ForeignKey(Person, verbose_name=_(u"Person"), unique=True) | 
