From 2597642e86b26d127d740142ba4580247564be7c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 24 Nov 2020 17:37:21 +0100 Subject: Document: display complete identifier on sheet and tables --- ishtar_common/widgets.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index 0136d7257..93352ccf3 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -1081,6 +1081,8 @@ class DataTable(Select2Media, forms.RadioSelect): table_cols = settings.TABLE_COLS[tb_key] else: table_cols = getattr(self.associated_model, self.table_cols) + if callable(table_cols): + table_cols = table_cols() for col_names in table_cols: field_verbose_names = [] -- cgit v1.2.3