diff options
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r-- | ishtar_common/widgets.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 = [] |