From f31f0f269a68b2dfc5c834ce420bb5a02a3ecd0c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 21 Oct 2012 15:04:28 +0200 Subject: Djangoization - Major refactoring (step 8) * clean-up on request and storage args in methods * view creation now managed by South * clean some mess in session values by using MultiValueDict --- ishtar_common/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ishtar_common/models.py') 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) -- cgit v1.2.3