{% load forum %} {% for forum,structure in forum_list|tree_structure %} {% if structure.new_level %}{% endfor %} {% endfor %}