Re: [Django] #34532: Form.default_renderer is ignored in formsets. (was: Overriding ModelForm default_renderer has no effect as forms api always uses renderer from settings)

4 views
Skip to first unread message

Django

unread,
May 3, 2023, 1:53:04 AM5/3/23
to django-...@googlegroups.com
#34532: Form.default_renderer is ignored in formsets.
----------------------------------+------------------------------------
Reporter: Ryan Burt | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.2
Severity: Normal | Resolution:
Keywords: default_renderer | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* stage: Unreviewed => Accepted


Comment:

Good catch. We should still pass `BaseFormSet.renderer` when instantiating
forms and it's set manually, it can be tricky to distinguish these cases.

--
Ticket URL: <https://code.djangoproject.com/ticket/34532#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages