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
commit7f1d9db82a29af007715eb786cc736277041704e (patch)
treede97ca38038965b23760ba2034c2327ccf23e671 /ishtar_common/widgets.py
parentb1c94c5f5949ba5514a95918187b223c78d4b986 (diff)
downloadIshtar-7f1d9db82a29af007715eb786cc736277041704e.tar.bz2
Ishtar-7f1d9db82a29af007715eb786cc736277041704e.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 = "", ""