#30738 closed Cleanup/optimization (fixed)
Misleading multiwidget template example.
Reported by: | Emmanuel Cazenave | Owned by: | Daria Kolodzey |
---|---|---|---|
Component: | Documentation | Version: | 2.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
In https://docs.djangoproject.com/en/2.2/ref/forms/widgets/#django.forms.MultiWidget.get_context the template given as an example includes the multiwidget template instead of including its sub-widget templates.
Instead of :
{% for subwidget in widget.subwidgets %} {% include widget.template_name with widget=subwidget %} {% endfor %}
there should be :
{% for subwidget in widget.subwidgets %} {% include subwidget.template_name with widget=subwidget %} {% endfor %}
Change History (6)
comment:1 by , 5 years ago
Easy pickings: | set |
---|---|
Summary: | Misleading multiwidget template example → Misleading multiwidget template example. |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 5 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Agreed, this typo should be fixed.