{% for group_name, group_choices, group_index in widget.optgroups %} {% for option in group_choices %}
{% endfor %} {% endfor %}