From 6b652a90b4ea0b57628d8ba4c42328f98d6024f6 Mon Sep 17 00:00:00 2001 From: Andrey-Barinov Date: Tue, 2 Jul 2024 18:35:27 +0300 Subject: [PATCH] Fixed pagination.html(incorrect pages display) --- templates/components/pagination.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/components/pagination.html b/templates/components/pagination.html index b1e0c37..951fbed 100644 --- a/templates/components/pagination.html +++ b/templates/components/pagination.html @@ -15,7 +15,7 @@ {% endif %} - {% if page.number >= first_boundary_last_page and paginator.num_pages >= max_pages_without_shrinking %} + {% if page.number >= first_boundary_last_page and paginator.num_pages > max_pages_without_shrinking %}
  • 1
  • {% endif %} @@ -28,7 +28,7 @@ {% endif %} {% endfor %} - {% if page.number <= last_boundary_first_page and paginator.num_pages >= max_pages_without_shrinking %} + {% if page.number <= last_boundary_first_page and paginator.num_pages > max_pages_without_shrinking %}
  • {{ paginator.num_pages }}
  • {% endif %}