From 073bc5dd763d0c181198af92fd5a2d8201d74679 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 21 Oct 2011 11:35:44 +0200 Subject: [PATCH 1/1] minor pagination fix --- wolnelektury/settings.py | 2 ++ wolnelektury/templates/catalogue/tagged_object_list.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index fb78ce433..48ba8f894 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -226,6 +226,8 @@ NO_BUILD_TXT = False NO_BUILD_PDF = False +PAGINATION_INVALID_PAGE_RAISES_404 = True + # Load localsettings, if they exist try: diff --git a/wolnelektury/templates/catalogue/tagged_object_list.html b/wolnelektury/templates/catalogue/tagged_object_list.html index 54db1d0fe..4809ad1ce 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -97,12 +97,12 @@ {{ book.short_html }} {% endfor %} + {% paginate %} {% else %} {% trans "Sorry! Search cirteria did not match any resources." %} {% include "info/join_us.html" %} {% endif %} {% endwith %} - {% paginate %} {% if object_list %} {% comment %} If we didn't find anything there will be nothing on the right side as well {% endcomment %} @@ -144,4 +144,4 @@

* {% trans "Loading" %}

-{% endblock %} \ No newline at end of file +{% endblock %} -- 2.20.1