summaryrefslogtreecommitdiff
path: root/ishtar_common/views_item.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views_item.py')
-rw-r--r--ishtar_common/views_item.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index 8efcaa9ee..d93db355b 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -1782,6 +1782,8 @@ def get_item(model, func_name, default_name, extra_request_keys=None,
table_cols = settings.TABLE_COLS[tb_key]
else:
table_cols = model.TABLE_COLS
+ if callable(table_cols):
+ table_cols = table_cols()
table_cols = list(table_cols)
if data_type == "json-map":
table_cols = [] # only pk for map