From d0c784d1b7df153b0fe649a0561e10eb39e8edc8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Jan 2017 12:22:39 +0100 Subject: Person table: fix organization column (refs #3412) --- ishtar_common/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 7451d9b33..41048bfa3 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2413,7 +2413,7 @@ class Person(Address, Merge, OwnPerms, ValueGetter): ('Dr', _(u'Doctor')), ) TABLE_COLS = ('name', 'surname', 'raw_name', 'email', 'person_types_list', - 'attached_to', 'town') + 'attached_to__name', 'town') SHOW_URL = 'show-person' MODIFY_URL = 'person_modify' @@ -2426,6 +2426,9 @@ class Person(Address, Merge, OwnPerms, ValueGetter): 'person_types': 'person_types__pk__in', 'ishtaruser__isnull': 'ishtaruser__isnull' } + COL_LABELS = { + 'attached_to__name': _(u"Organization") + } # fields old_title = models.CharField(_(u"Title"), max_length=100, choices=TYPE, -- cgit v1.2.3