Backport minor fix

This commit is contained in:
Raphael Michel
2017-03-28 10:37:02 +02:00
parent a5c7c9dd1e
commit 44ba1904f6
+1 -1
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).')
})