From 7d93cae2a956107ce126be3c0193a4641236bae3 Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Wed, 2 Sep 2026 10:35:19 +0200 Subject: [PATCH] set the _required attribute on the ModelMultipleChoiceField (#6514) setting _required forces the CheckoutFieldRenderer to add the "required" bit to the label. We only need to remove it from the widget attrs to avoid the html input field validation that would force us to check every single box --- src/pretix/base/forms/questions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/forms/questions.py b/src/pretix/base/forms/questions.py index 73cdb2998..dca62f0ed 100644 --- a/src/pretix/base/forms/questions.py +++ b/src/pretix/base/forms/questions.py @@ -899,7 +899,7 @@ class BaseQuestionsForm(forms.Form): field.widget.attrs['data-question-dependency-values'] = escapejson_attr(json.dumps(q.dependency_values)) if q.type != 'M': field.widget.attrs['required'] = q.required and not self.all_optional - field._required = q.required and not self.all_optional + field._required = q.required and not self.all_optional field.required = False return field