django template syntax (as instead of =)

This commit is contained in:
Tom Bernens 2020-06-01 16:50:20 -07:00
parent 050a65e6df
commit d9cb76d491

View File

@ -46,7 +46,7 @@
{% endif %}
{% with ''|center:11 as range %}
{% for _ in range %}
{% with i = ticket_list.number + (forloop.counter-5) %}
{% with (ticket_list.number + (forloop.counter-5)) as i %}
{% if ticket_list.number == i %}
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
{% else %}