{% load l10n %} {% for group, subgroup, index in widget.optgroups %} {% if group %}{{ group }}{% endif %} {% for option in subgroup %}
{% if option.label.text %}

{{ option.label.text }}

{% endif %}
{% endfor %} {% endfor %}