diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-13 11:57:34 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-13 11:57:34 +0100 |
commit | bc002a96942499c89e9665dae0e51cc9e43a7117 (patch) | |
tree | 03790fce85b142ac17b9350ac1a7eb6ccd5dae8c /ishtar_common/models.py | |
parent | 86b2405dcf387ea1111a7868b9ec24caf712d168 (diff) | |
download | Ishtar-bc002a96942499c89e9665dae0e51cc9e43a7117.tar.bz2 Ishtar-bc002a96942499c89e9665dae0e51cc9e43a7117.zip |
Fix display of missing title person
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 6039f46e3..e5d966bf9 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -581,7 +581,9 @@ class Person(Address, OwnPerms) : return lbl def full_label(self): - values = [unicode(_(self.title))] + values = [] + if self.title: + values = [unicode(_(self.title))] values += [unicode(getattr(self, attr)) for attr in ('surname', 'name', 'attached_to') if getattr(self, attr)] |