#35881: MultiWidget bypasses subwidget rendering customization
------------------------------+--------------------------------------
Reporter: Adam Johnson | Owner: Alanna Cao
Type: Bug | Status: assigned
Component: Forms | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by Adam Johnson):
`MultiWidget` is in `django/forms/widgets.py`. Its `render()` method is
`Widget.render()` in the same file. That renders the template declared
within `MultiWidget.template_name` which is
`django/forms/widgets/multiwidget.html`. There are Django Template
Language and Jinja implementations of that template, but they both end up
using `{% include %}`, which is where the issue comes from.
Implementing a new `render()` within `MultiWidget` is one of the solutions
I proposed.
--
Ticket URL: <https://code.djangoproject.com/ticket/35881#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701938c490985-8cb705b9-3929-4d7a-ab04-f8accfa45a78-000000%40eu-central-1.amazonses.com.