#33445: MultiWidget doesn't call subwidgets' render() methods.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 4.0
Severity: Normal | Resolution: needsinfo
Keywords: Forms, multiwidget, | Triage Stage:
subwidget render. | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* cc: Matthias Kestenholz, David Smith (added)
* type: Bug => New feature
* easy: 1 => 0
* has_patch: 1 => 0
* resolution: => needsinfo
Comment:
Thanks for this report, however it's not a bug, IMO. `MultiWidget` is also
a normal `Widget` and getting context for subwidgets (as
[https://docs.djangoproject.com/en/4.0/ref/forms/widgets/#django.forms.MultiWidget.get_context
documented]) should be sufficient for rendering. `render()` is a highly
specialized method and I don't see why calling a custom `render()` for
subwidgets would be necessary. Also, as far as I'm aware
[https://github.com/django-ckeditor/django-
ckeditor/blob/50cd4aba9533c541e7d1ef5a4e67aed8c827f10c/ckeditor/widgets.py#L28-L137
CKEditorWidget] doesn't have a `render()` method.
What's your use case?
--
Ticket URL: <https://code.djangoproject.com/ticket/33445#comment:1>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/067.326cd9328b6cb6251011e1c7797211cd%40djangoproject.com.