added beginnings of tree view for categories
This commit is contained in:
7
templates/children.html
Normal file
7
templates/children.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<ul>
|
||||||
|
{% for child in children %}
|
||||||
|
<li> <a href="{{ child.get_absolute_url }}">{{ child }}</a></li>
|
||||||
|
{% child.children.count > 0 %}
|
||||||
|
{% children_list child %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
1
templates/main.html
Normal file
1
templates/main.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{% children_tag parent %}
|
||||||
Reference in New Issue
Block a user