summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-04-06 12:31:38 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commit0f96790ca2866d205b262c96ddb1b155abb80ef6 (patch)
tree1ac684557b5b6d2b7457b80040f8955e0db19d07 /archaeological_finds/views.py
parent8b69114b1932329283f3563077a3cb53149af7c8 (diff)
downloadIshtar-0f96790ca2866d205b262c96ddb1b155abb80ef6.tar.bz2
Ishtar-0f96790ca2866d205b262c96ddb1b155abb80ef6.zip
New container localisation - adapt sheets, imports
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 1fc2b3722..cf82cceb8 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -66,6 +66,11 @@ def get_table_cols_for_ope():
return settings.TABLE_COLS[tb_key]
+def get_table_cols_for_container():
+ table_col = get_table_cols_for_ope()
+ return ["find__" + tc for tc in table_col]
+
+
get_find_for_ope = get_item(models.Find, 'get_find', 'find',
own_table_cols=get_table_cols_for_ope())
@@ -73,6 +78,12 @@ get_find_for_treatment = get_item(
models.Find, 'get_find', 'find',
own_table_cols=get_table_cols_for_ope(), base_request={})
+get_find_inside_container = get_item(
+ models.FindInsideContainer, 'get_find_inside_container',
+ 'find',
+ extra_request_keys=models.FindInsideContainer.EXTRA_REQUEST_KEYS,
+ own_table_cols=get_table_cols_for_container())
+
autocomplete_find = get_autocomplete_item(model=models.Find)