{% comment %} A choice group's options, drawn by Django's widget: Django's own multiple_input.html without its wrapper, since choices.html holds the grid. {% endcomment %} {% for group, options, index in widget.optgroups %}{% if group %} {{ group }}{% endif %}{% for option in options %} {% include option.template_name with widget=option %}{% endfor %}{% endfor %}