diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-21 15:04:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-21 15:04:28 +0200 |
commit | 038b12ea13407d69fbbe8f0fae3067aa55f1f763 (patch) | |
tree | a8d881b59447269f2e92578cf5924759bad17704 /ishtar_common/models.py | |
parent | ea73bf44c5d527f407c89b35b22b21abf2f32617 (diff) | |
download | Ishtar-038b12ea13407d69fbbe8f0fae3067aa55f1f763.tar.bz2 Ishtar-038b12ea13407d69fbbe8f0fae3067aa55f1f763.zip |
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
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) |