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 %}