{% load mptt_tags smart_if %} {% if menu_tree %} {% for menu in menu_tree %} {% if menu.new_level %} {% endfor %} {% endfor %} {% endif %}