From a39de3c54cf2f76cd40dd83a0f780e8780267c0c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Aug 2016 13:52:44 +0200 Subject: Parcels: add public domain field - better management of parcel formsets (refs #2284) --- archaeological_files/views.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_files/views.py') diff --git a/archaeological_files/views.py b/archaeological_files/views.py index 5eed99278..3341c2813 100644 --- a/archaeological_files/views.py +++ b/archaeological_files/views.py @@ -85,6 +85,8 @@ get_file = get_item( 'operations__parcels__section'), 'parcel_1': ('parcels__parcel_number', 'operations__parcels__parcel_number'), + 'parcel_2': ('operations__parcels__public_domain', + 'parcels__public_domain'), 'end_date': 'end_date__isnull', 'towns__numero_insee__startswith': 'towns__numero_insee__startswith', @@ -135,6 +137,8 @@ get_administrativeactfile = get_item( 'parcel_1': ( 'operation__parcels__parcel_number', 'associated_file__parcels__parcel_number'), + 'parcel_2': ('operations__parcels__public_domain', + 'associated_file__parcels__public_domain'), 'associated_file__permit_reference': 'associated_file__permit_reference__icontains'}, reversed_bool_fields=['index__isnull'], -- cgit v1.2.3