{% load html_components %} {% load custom_filters %} {% for category, tags in tagsByCategory.items %}
{{category}}
{% for tag in tags %}
{{ selectedTags|ternary_checkbox:tag.id }}
{% endfor %}
{% endfor %}