diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-09 19:31:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-09 19:31:14 +0200 |
commit | 6ee8c39a2e8e053810bea643fdf0f8c3fa21374b (patch) | |
tree | d016b7c4969407fe679dd27b6aedfb1d47c57448 /archaeological_context_records/views.py | |
parent | fc572c9de810ec5c32b5178a5e8b9d9a3aefc4f5 (diff) | |
download | Ishtar-6ee8c39a2e8e053810bea643fdf0f8c3fa21374b.tar.bz2 Ishtar-6ee8c39a2e8e053810bea643fdf0f8c3fa21374b.zip |
Shortcut menu: parent items constraint default search if no default item is set (refs #1318)
Diffstat (limited to 'archaeological_context_records/views.py')
-rw-r--r-- | archaeological_context_records/views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_context_records/views.py b/archaeological_context_records/views.py index 4fd945187..5c8bb63cc 100644 --- a/archaeological_context_records/views.py +++ b/archaeological_context_records/views.py @@ -81,6 +81,9 @@ get_contextrecord = get_item( models.ContextRecord, 'get_contextrecord', 'contextrecord', relation_types_prefix={'ope_relation_types': 'operation__'}, + relative_session_names=[ + ('operation', 'operation__pk'), + ('file', 'operation__associated_file__pk')], extra_request_keys=contextrecord_extra_keys,) get_contextrecord_for_ope = get_item( models.ContextRecord, @@ -94,6 +97,10 @@ show_contextrecordsource = show_item(models.ContextRecordSource, get_contextrecordsource = get_item( models.ContextRecordSource, 'get_contextrecordsource', 'contextrecordsource', + relative_session_names=[ + ('contextrecord', 'context_record__pk'), + ('operation', 'context_record__operation__pk'), + ('file', 'context_record__operation__associated_file__pk')], bool_fields=['duplicate'], extra_request_keys={ 'title': 'title__icontains', |