From: Radek Czajka Date: Fri, 21 Oct 2011 09:35:44 +0000 (+0200) Subject: minor pagination fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/073bc5dd763d0c181198af92fd5a2d8201d74679 minor pagination fix --- 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 %}