Created
February 4, 2017 02:38
-
-
Save AliYmn/b40fb41e14a811f6e313cbbdd4897fbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load mptt_tags %} | |
<ul> | |
{% recursetree nodes %} | |
<li> | |
{{ node.title }} | |
<br> | |
{{ node.image.url }} | |
{% if not node.is_leaf_node %} | |
<ul class="children"> | |
{{ children }} | |
</ul> | |
{% endif %} | |
</li> | |
{% endrecursetree %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment