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 | fd4df93e212477cd7bdaa8286f8081138673608e (patch) | |
tree | 03790fce85b142ac17b9350ac1a7eb6ccd5dae8c | |
parent | 2266775ccf26574da6cdd5fc5d514bb999a3f912 (diff) | |
download | Ishtar-fd4df93e212477cd7bdaa8286f8081138673608e.tar.bz2 Ishtar-fd4df93e212477cd7bdaa8286f8081138673608e.zip |
Fix display of missing title person
-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)] |