{% for item in object_list %}
  • {{ item }} {% if not item.is_leaf_node %} {% endif %}
  • {% endfor %}