From c176b125612945be925d25922a6fe1db4d1def50 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 2 Oct 2019 22:05:58 +0200 Subject: [PATCH] Fix bug with pagination usage. --- migdal/templates/migdal/entry/entry_list.html | 7 ++++--- setup.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/migdal/templates/migdal/entry/entry_list.html b/migdal/templates/migdal/entry/entry_list.html index 05583bd..e07bb76 100644 --- a/migdal/templates/migdal/entry/entry_list.html +++ b/migdal/templates/migdal/entry/entry_list.html @@ -15,7 +15,9 @@

{{ entry_type|capfirst }}

{% endif %} -{% if object_list.promobox and request.page == 1 %} +{% autopaginate object_list 10 as page %} + +{% if object_list.promobox and page.number == 1 %}