{% load i18n mptt_tags %} {% for Objecttype, structure in objecttypes|tree_info %} {% if structure.new_level %}{% endfor %} {% empty %} {% endfor %}