diff options
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 |
commit | 4e8808f613749fcb1896cb932557c33cee2157a9 (patch) | |
tree | a9b1296864a5be9db26af399a14aadb87de96c27 /archaeological_operations/forms.py | |
parent | 5abe9dcdfc37493be0596d49c1ce8aa8266f2e34 (diff) | |
download | Ishtar-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.py | 2 |
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 " |