summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-06-24 15:08:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commitb6b1fe48349b4aa33e3c85644da82722e5ac1faf (patch)
tree44027a292cc31784c1f6d78fa047fe2b2285d249 /archaeological_finds/views.py
parent137400406965636e3f0a2540c7ea0fac2c7dbbde (diff)
downloadIshtar-b6b1fe48349b4aa33e3c85644da82722e5ac1faf.tar.bz2
Ishtar-b6b1fe48349b4aa33e3c85644da82722e5ac1faf.zip
Container: fix find table inside containers (refs #4950)
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py7
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',