summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-29 14:57:40 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-29 14:57:40 +0100
commitacc323158b9853c7e7b4f385a1e959a10df1e1e4 (patch)
tree260c1331edeefaff2e1e91c5bd38f18e02c74e7b /archaeological_operations/forms.py
parentcc1e1081ac42601c06562cfe2f9324e2ecad0814 (diff)
downloadIshtar-acc323158b9853c7e7b4f385a1e959a10df1e1e4.tar.bz2
Ishtar-acc323158b9853c7e7b4f385a1e959a10df1e1e4.zip
Dashboard: fix operation form
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py6
1 files changed, 3 insertions, 3 deletions
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'):