mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Prevent users from setting up dependencies for check-in questions
This commit is contained in:
@@ -68,6 +68,8 @@ class QuestionForm(I18nModelForm):
|
|||||||
d = super().clean()
|
d = super().clean()
|
||||||
if d.get('dependency_question') and not d.get('dependency_value'):
|
if d.get('dependency_question') and not d.get('dependency_value'):
|
||||||
raise ValidationError({'dependency_value': [_('This field is required')]})
|
raise ValidationError({'dependency_value': [_('This field is required')]})
|
||||||
|
if d.get('dependency_question') and d.get('ask_during_checkin'):
|
||||||
|
raise ValidationError(_('Dependencies between questions are not supported during check-in.'))
|
||||||
return d
|
return d
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|||||||
Reference in New Issue
Block a user