From 4b1349b748e8dbd1ace541cc55562dba6bd9fe6f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 6 Oct 2015 00:31:12 +0200 Subject: Specific context record table for operation window --- archaeological_context_records/views.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'archaeological_context_records/views.py') diff --git a/archaeological_context_records/views.py b/archaeological_context_records/views.py index 483630b3c..d64adc2a2 100644 --- a/archaeological_context_records/views.py +++ b/archaeological_context_records/views.py @@ -43,6 +43,20 @@ get_contextrecord = get_item( 'parcel_1': 'operation__parcels__parcel_number', 'label': 'label__icontains' },) +get_contextrecord_for_ope = get_item( + models.ContextRecord, + 'get_contextrecord', 'contextrecord', + extra_request_keys={ + 'parcel__town': 'parcel__town__pk', + 'operation__year': 'operation__year__contains', + 'operation__code_patriarche': 'operation__code_patriarche', + 'operation__operation_code': 'operation__operation_code', + 'datings__period': 'datings__period__pk', + 'parcel_0': 'operation__parcels__section', + 'parcel_1': 'operation__parcels__parcel_number', + 'label': 'label__icontains' + }, + own_table_cols=models.ContextRecord.TABLE_COLS_FOR_OPE) get_contextrecordsource = get_item( models.ContextRecordSource, 'get_contextrecordsource', 'contextrecordsource', -- cgit v1.2.3