From bdbdd7cc406c38da3ce2b6ddd8852091a2484132 Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Tue, 10 Sep 2024 15:17:36 -0400 Subject: [PATCH] Remove redundant check for current page in pagination --- templates/includes/pagination.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/includes/pagination.html b/templates/includes/pagination.html index 4dbc7739..56a0743e 100644 --- a/templates/includes/pagination.html +++ b/templates/includes/pagination.html @@ -12,7 +12,7 @@ {# always display current page, marked as active #} {% if number == page_obj.number %} - {{ number }} + {{ number }} {# for current page 1 or 2, display first 5 #} {% elif page_obj.number <= 2 and number <= 5 %}