From 83dd865b783be4d9fda4fd49d598398b0dbaacea Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 26 Aug 2019 16:44:20 +0200 Subject: [PATCH] Fix crash when de-selecting all languages --- src/pretix/control/forms/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index b1d76c0549..b27a0cf578 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -534,7 +534,7 @@ class EventSettingsForm(SettingsForm): def clean(self): data = super().clean() - if data['locale'] not in data['locales']: + if 'locales' in data and data['locale'] not in data['locales']: raise ValidationError({ 'locale': _('Your default locale must also be enabled for your event (see box above).') })