Question form: Allow to unset required boolean questions (Z#23239887) (#6382)

Proper fix for #6366
This commit is contained in:
Raphael Michel
2026-07-28 10:59:34 +02:00
committed by GitHub
parent 5c98dc16b7
commit f3ffce4e5b
+1 -1
View File
@@ -1121,7 +1121,7 @@ class BaseQuestionsForm(forms.Form):
for q in question_cache.values():
if q.required and q.type == Question.TYPE_BOOLEAN:
if 'question_%d' % q.pk in d and d['question_%d' % q.pk] is False:
del d['question_%d' % q.pk]
d['question_%d' % q.pk] = None
return d