diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-01 13:33:21 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | dfad3d4b9d7779b5fcd125260021d9f008a68a4f (patch) | |
tree | f828418edadbf957db52121c13575ed7cc3e068c /archaeological_finds/views.py | |
parent | fc3f77b2db29391ce1340c535a02b7a32583caa7 (diff) | |
download | Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.tar.bz2 Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.zip |
Context records: show find inside related context records
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 c843f02d2..4e4103224 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -66,6 +66,13 @@ def get_table_cols_for_ope(): return settings.TABLE_COLS[tb_key] +def get_table_cols_for_cr(): + tb_key = (models.Find.SLUG, "TABLE_COLS_FOR_CR") + if tb_key not in settings.TABLE_COLS: + return models.Find.TABLE_COLS_FOR_CR + return settings.TABLE_COLS[tb_key] + + def get_table_cols_for_container(): table_cols = models.Find.TABLE_COLS tb_key = ("find", 'TABLE_COLS') @@ -77,6 +84,10 @@ def get_table_cols_for_container(): get_find_for_ope = get_item(models.Find, 'get_find', 'find', own_table_cols=get_table_cols_for_ope()) + +get_find_for_cr = get_item(models.Find, 'get_find', 'find', + own_table_cols=get_table_cols_for_cr()) + get_find_for_treatment = get_item( models.Find, 'get_find', 'find', own_table_cols=get_table_cols_for_ope(), base_request={}) |