summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-13 23:08:11 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-13 23:08:11 +0100
commit4e8808f613749fcb1896cb932557c33cee2157a9 (patch)
treea9b1296864a5be9db26af399a14aadb87de96c27 /archaeological_operations/forms.py
parent5abe9dcdfc37493be0596d49c1ce8aa8266f2e34 (diff)
downloadIshtar-4e8808f613749fcb1896cb932557c33cee2157a9.tar.bz2
Ishtar-4e8808f613749fcb1896cb932557c33cee2157a9.zip
Manage many additions for archaeological sites (refs #3043)
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 "