Answer the question
In order to leave comments, you need to log in
The code from the mptt documentation doesn't quite work. Where to dig?
In the admin panel, the tree is built without problems. (django_mptt_admin)
In the template, code from the mptt documentation:
<ul class="categories">
{% recursetree categories %}
<li>
{{node.name}}
{% if not node.is_leaf_node %}
<ul class="children">
{{ clildren }}
</ul>
{% endif %}
</li>
{% endrecursetree %}
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question