added beginnings of tree view for categories
This commit is contained in:
parent
e0e97b23e2
commit
798ab9cbbe
2 changed files with 8 additions and 0 deletions
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 %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue