- Appplied filters to queryset check for length of items in change list

- Added conditional in template to show/hide sort link
This commit is contained in:
Brandon Taylor
2019-02-14 16:04:17 -05:00
parent 1e395ab3f0
commit 478600fd5a
2 changed files with 18 additions and 2 deletions
@@ -24,9 +24,11 @@
<a href="./sort/?sort_filter={{ forloop.counter0 }}">{% trans 'Change Order of' %} {{ sorting_filter }}</a>
</li>
{% empty %}
{% if is_sortable %}
<li>
<a id="change-order" href="./sort/">{% trans 'Change Order' %}</a>
</li>
{% endif %}
{% endfor %}
{{ block.super }}
{% endblock %}