From acc323158b9853c7e7b4f385a1e959a10df1e1e4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Jan 2018 14:57:40 +0100 Subject: Dashboard: fix operation form --- archaeological_operations/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_operations/forms.py') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 3541020d8..4f5ac0435 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -740,9 +740,9 @@ class DashboardForm(IshtarForm): if self.cleaned_data.get('preventive_research'): preventive_research = self.cleaned_data['preventive_research'] if preventive_research == 'preventive': - fltr['file_type__preventive'] = True - elif preventive_research == 'preventive': - fltr['file_type__preventive'] = False + fltr['operation_type__preventive'] = True + elif preventive_research == 'research': + fltr['operation_type__preventive'] = False if self.cleaned_data.get('operation_type'): fltr['operation_type_id'] = self.cleaned_data['operation_type'] if self.cleaned_data.get('operator'): -- cgit v1.2.3