{% for tag in tags_heirarchy %} {% with tags_heirarchy = tags_heirarchy[tag] %} {% include 'credit/subtag_tree.html' %} {% endwith %} {% endfor %}