From 54f11c74cbb172ba552d489ece999f03d2ec6744 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 14 May 2024 22:58:20 +0200 Subject: [PATCH] refactor: make pagination template compatible with ListView --- shiftregister/core/templates/pagination.html | 18 ++++++------- .../team/templates/incoming_messages.html | 2 +- shiftregister/team/urls.py | 2 +- shiftregister/team/views.py | 27 ++++++++++--------- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/shiftregister/core/templates/pagination.html b/shiftregister/core/templates/pagination.html index 5cbd26a..c94e92f 100644 --- a/shiftregister/core/templates/pagination.html +++ b/shiftregister/core/templates/pagination.html @@ -1,22 +1,22 @@ -{% if page.has_other_pages %} +{% if is_paginated %}