mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix edge case in item add-on formset validation
This commit is contained in:
@@ -768,10 +768,6 @@ class ItemAddOnsFormSet(I18nFormSet):
|
|||||||
if self._should_delete_form(form):
|
if self._should_delete_form(form):
|
||||||
# This form is going to be deleted so any of its errors
|
# This form is going to be deleted so any of its errors
|
||||||
# should not cause the entire formset to be invalid.
|
# should not cause the entire formset to be invalid.
|
||||||
try:
|
|
||||||
categories.remove(form.cleaned_data['addon_category'].pk)
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if 'addon_category' in form.cleaned_data:
|
if 'addon_category' in form.cleaned_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user