From a85223e7a5a0e87257e0ee62ff745b34a992aec5 Mon Sep 17 00:00:00 2001 From: Tom Bernens Date: Mon, 1 Jun 2020 17:20:11 -0700 Subject: [PATCH] only create the control if the page number is in the paginator range --- 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 3261d8ff..1afa835a 100644 --- a/helpdesk/templates/helpdesk/include/tickets.html +++ b/helpdesk/templates/helpdesk/include/tickets.html @@ -53,7 +53,7 @@ {% with ticket_list.number|add:forloop.counter|add:"-5" as i %} {% if ticket_list.number == i %}
  • {{ i }} (current)
  • - {% else if ticket_list.pages%} + {% else if i in ticket_list.paginator.page_range %}
  • {{ i }}
  • {% endif %} {% endfor %}