{% load static %} {% with id=widget.attrs.id %} {% for group, options in widget.sorted_groups.items %}
{{ group|default:'Без группы' }} {% for option in options %}
  • {% endfor %}
    {% endfor %} {% endwith %}