From 7f1d9db82a29af007715eb786cc736277041704e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 22 Dec 2016 12:46:24 +0100 Subject: Manage cached_label for treatments - display full label in finds tables (refs #3395) --- ishtar_common/widgets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ishtar_common/widgets.py') 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 = "", "" -- cgit v1.2.3