From: Radek Czajka Date: Wed, 2 Oct 2019 20:05:58 +0000 (+0200) Subject: Fix bug with pagination usage. X-Git-Tag: 0.8.7 X-Git-Url: https://git.mdrn.pl/django-migdal.git/commitdiff_plain/c176b125612945be925d25922a6fe1db4d1def50?ds=inline Fix bug with pagination usage. --- 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 %}