diff options
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 |
commit | 0f96790ca2866d205b262c96ddb1b155abb80ef6 (patch) | |
tree | 1ac684557b5b6d2b7457b80040f8955e0db19d07 /archaeological_finds/views.py | |
parent | 8b69114b1932329283f3563077a3cb53149af7c8 (diff) | |
download | Ishtar-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.py | 11 |
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) |