diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-13 12:22:39 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-13 12:22:39 +0100 |
commit | d0c784d1b7df153b0fe649a0561e10eb39e8edc8 (patch) | |
tree | 54e4da286fe50726faf5a9df31570b641715b892 | |
parent | d30bd9ef84074d254da55b2a4c3477273be8a097 (diff) | |
download | Ishtar-d0c784d1b7df153b0fe649a0561e10eb39e8edc8.tar.bz2 Ishtar-d0c784d1b7df153b0fe649a0561e10eb39e8edc8.zip |
Person table: fix organization column (refs #3412)
-rw-r--r-- | ishtar_common/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
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, |