From bc002a96942499c89e9665dae0e51cc9e43a7117 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Mar 2013 11:57:34 +0100 Subject: Fix display of missing title person --- ishtar_common/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)] -- cgit v1.2.3