From e4523a6d05ecfa1c1e3da3fa29f1169cc42228ca Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 24 Jun 2020 15:08:50 +0200 Subject: Container: fix find table inside containers (refs #4950) --- archaeological_finds/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/views.py') 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', -- cgit v1.2.3