{% load mptt_tags %}
{% for entity,structure in entities|tree_info %} {% if structure.new_level %} {% endfor %} {% endfor %}