{% if not widget.attrs.readonly_select %}
{% else %}
{% for group_name, group_choices, group_index in widget.optgroups %}
{% for option in group_choices %}
{% if widget.value.0|add:"0" == option.value %}
{{ option.label }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}