diff --git a/src/pretix/control/forms/organizer.py b/src/pretix/control/forms/organizer.py index a17fea2998..8f96e4526b 100644 --- a/src/pretix/control/forms/organizer.py +++ b/src/pretix/control/forms/organizer.py @@ -273,7 +273,7 @@ class DeviceForm(forms.ModelForm): def clean(self): d = super().clean() - if not d['all_events'] and not d['limit_events']: + if not d['all_events'] and not d.get('limit_events'): raise ValidationError(_('Your device will not have access to anything, please select some events.')) return d