diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 0e701babeb..d649ece6ba 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -401,7 +401,7 @@ foundation for custom widgets. .. code-block:: html+django {% for subwidget in widget.subwidgets %} - {% include widget.template_name with widget=subwidget %} + {% include subwidget.template_name with widget=subwidget %} {% endfor %} Here's an example widget which subclasses :class:`MultiWidget` to display