{% for k, dtos in references.items() %} {% if dtos|length > 0 %}

{{ k }}

{% endif %} {% endfor %}