summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-22 12:46:24 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-22 12:46:24 +0100
commit415d5f244eac52fcb664bd4280b0be1502e9eb71 (patch)
treede97ca38038965b23760ba2034c2327ccf23e671 /ishtar_common/widgets.py
parentc061306889dc2ac314eecbcd05168e03ca69f6c7 (diff)
downloadIshtar-415d5f244eac52fcb664bd4280b0be1502e9eb71.tar.bz2
Ishtar-415d5f244eac52fcb664bd4280b0be1502e9eb71.zip
Manage cached_label for treatments - display full label in finds tables (refs #3395)
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index be0ab8cba..ddbfa91bf 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -573,9 +573,8 @@ class JQueryJqGrid(forms.RadioSelect):
def get_cols(self, python=False):
jq_col_names, extra_cols = [], []
col_labels = {}
- if hasattr(self.associated_model, self.table_cols + '_LBL'):
- col_labels = getattr(self.associated_model,
- self.table_cols + '_LBL')
+ if hasattr(self.associated_model, 'COL_LABELS'):
+ col_labels = self.associated_model.COL_LABELS
for col_names in getattr(self.associated_model, self.table_cols):
field_verbose_names = []
field_verbose_name, field_name = "", ""