django__django-16041
Rendering empty_form crashes when empty_permitted is passed to form_kwargs
Verdict: the issue text repeats lines of the gold patch (Tier C).
It should be enough to change form_kwargs for empty_form, e.g. django/forms/formsets.py diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 57676428ff..b73d1d742e 100644 a b class BaseFormSet(RenderableFormMixin): 257257 258258 @property 259259 def empty_form(self): 260 form = self.form(
7 of 7 added patch lines appear in the issue or discussion.
All SWE-bench Lite tasks · more django/django tasks · How the check works