Support Django 4.0, drop Django < 2.1, Python < 3.6.
[django-pagination.git] / fnp_django_pagination / templates / pagination / pagination.html
index ea01b61..8ab929f 100644 (file)
@@ -18,7 +18,7 @@
   {% if display_page_links %}
   {% for page in pages %}
   {% if page %}
-  {% ifequal page page_obj.number %}
+  {% if page == page_obj.number %}
   <span class="current page">{{ page }}</span>
   {% else %}
   {% if disable_link_for_first_page and page == 1 %}
@@ -26,7 +26,7 @@
   {% else %}
   <a href="?page{{ page_suffix }}={{ page }}{{ getvars }}" class="page">{{ page }}</a>
   {% endif %}
-  {% endifequal %}
+  {% endif %}
   {% else %}
   ...
   {% endif %}