{% if not widget.has_selected %}

{{ widget.attrs.placeholder }}

{% endif %} {% for _, options, _ in widget.optgroups %} {% for option in options %} {% if option.selected %} {% block show_selected %}

{{ option.label }},

{% endblock show_selected %} {% endif %} {% endfor %} {% endfor %}
{% block field_template %} {% include "django/forms/widgets/multiple_input.html" %} {% endblock field_template %}