From d9cb76d491791e3265397d9666b8eaf68ad1e9d7 Mon Sep 17 00:00:00 2001 From: Tom Bernens Date: Mon, 1 Jun 2020 16:50:20 -0700 Subject: [PATCH] django template syntax (as instead of =) --- helpdesk/templates/helpdesk/include/tickets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/include/tickets.html b/helpdesk/templates/helpdesk/include/tickets.html index a270648b..7e9af696 100644 --- a/helpdesk/templates/helpdesk/include/tickets.html +++ b/helpdesk/templates/helpdesk/include/tickets.html @@ -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 %}
  • {{ i }} (current)
  • {% else %}