{% for widget in widget.subwidgets %} {% include widget.template_name %} {% if forloop.last %} to: {% endif %} {% endfor %}