forked from wiktor/spejstore-new
Sort children list in an item page
This commit is contained in:
parent
3853bd6a6a
commit
4ce656c836
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
<h3>Children</h3>
|
<h3>Children</h3>
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
{% for child in children %}
|
{% for child in children|dictsort:"name" %}
|
||||||
<tr><td><a href="{{ child.get_absolute_url }}">{{ child.name }}</a></td></tr>
|
<tr><td><a href="{{ child.get_absolute_url }}">{{ child.name }}</a></td></tr>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<tr><td colspan=2>No children</td></tr>
|
<tr><td colspan=2>No children</td></tr>
|
||||||
|
|
Loading…
Reference in New Issue