diff options
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r-- | archaeological_finds/views.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index cf82cceb8..c843f02d2 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -67,8 +67,11 @@ def get_table_cols_for_ope(): def get_table_cols_for_container(): - table_col = get_table_cols_for_ope() - return ["find__" + tc for tc in table_col] + table_cols = models.Find.TABLE_COLS + tb_key = ("find", 'TABLE_COLS') + if tb_key in settings.TABLE_COLS: + table_cols = settings.TABLE_COLS[tb_key] + return ["find__" + tc for tc in table_cols] get_find_for_ope = get_item(models.Find, 'get_find', 'find', |