From 08fc03e780953ffa8a488c8c470edbde60fc4df0 Mon Sep 17 00:00:00 2001 From: Alexandre Muller Date: Wed, 20 Dec 2023 14:26:17 +0100 Subject: [PATCH] templates: replace ifequal templatetag by if ifequal templatetag is deprecated in Django 3.1, removed in Django 4.0 --- dj_pagination/templates/pagination/pagination.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dj_pagination/templates/pagination/pagination.html b/dj_pagination/templates/pagination/pagination.html index ea01b61..8ab929f 100644 --- a/dj_pagination/templates/pagination/pagination.html +++ b/dj_pagination/templates/pagination/pagination.html @@ -18,7 +18,7 @@ {% if display_page_links %} {% for page in pages %} {% if page %} - {% ifequal page page_obj.number %} + {% if page == page_obj.number %} {{ page }} {% else %} {% if disable_link_for_first_page and page == 1 %} @@ -26,7 +26,7 @@ {% else %} {{ page }} {% endif %} - {% endifequal %} + {% endif %} {% else %} ... {% endif %}