summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 90977416b..51836e1fe 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -741,7 +741,7 @@ class OperationFormGeneral(forms.Form):
def clean(self):
cleaned_data = self.cleaned_data
# verify the logic between start date and excavation end date
- if cleaned_data['excavation_end_date']:
+ if cleaned_data.get('excavation_end_date'):
if not self.cleaned_data['start_date']:
raise forms.ValidationError(
_(u"If you want to set an excavation end date you have to "