#30738: Misleading multiwidget template example
---------------------------------------------+------------------------
               Reporter:  Emmanuel Cazenave  |          Owner:  nobody
                   Type:  Uncategorized      |         Status:  new
              Component:  Documentation      |        Version:  2.2
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 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 %}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30738>
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/049.1bb49f8d44cb7c513a434213990bbc15%40djangoproject.com.

Reply via email to