Add basic tests for event creation

This commit is contained in:
Raphael Michel
2017-03-12 17:23:39 +01:00
parent 5a882a0fae
commit 8418eb2c6b
2 changed files with 104 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ class EventWizardBasicsForm(I18nModelForm):
def clean(self):
data = super().clean()
if data['locale'] not in self.locales:
if data.get('locale') not in self.locales:
raise ValidationError({
'locale': _('Your default locale must also be enabled for your event (see box above).')
})