From: Radek Czajka Date: Fri, 4 Feb 2011 12:50:13 +0000 (+0100) Subject: all audiobooks ever feed instead of public audiobooks in all formats X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/06954b630bc0f09afd4e7e1e9cd04a53ff6347b4?hp=37c3ebaefb5e0410dd5c73548bdd48a3b997b987 all audiobooks ever feed instead of public audiobooks in all formats --- diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py index 356bb0262..c79e05809 100644 --- a/apps/catalogue/feeds.py +++ b/apps/catalogue/feeds.py @@ -42,8 +42,8 @@ class AudiobookFeed(Feed): if type == 'all': objects = objects.filter(type__in=('mp3', 'ogg', 'daisy')) else: - objects = objects.filter(type=type) - return objects[:20] + objects = objects.filter(type=type)[:20] + return objects def item_title(self, item): return item.name diff --git a/wolnelektury/templates/catalogue/audiobook_list.html b/wolnelektury/templates/catalogue/audiobook_list.html index c406152ee..8c34c3d15 100644 --- a/wolnelektury/templates/catalogue/audiobook_list.html +++ b/wolnelektury/templates/catalogue/audiobook_list.html @@ -8,7 +8,6 @@ {% block extrahead %} - {% endblock %} {% block book_list_header %}{% trans "Listing of all audiobooks" %}{% endblock %} diff --git a/wolnelektury/templates/catalogue/daisy_list.html b/wolnelektury/templates/catalogue/daisy_list.html index 72fcc5a39..b637bed72 100644 --- a/wolnelektury/templates/catalogue/daisy_list.html +++ b/wolnelektury/templates/catalogue/daisy_list.html @@ -7,7 +7,6 @@ {% block extrahead %} - {% endblock %} {% block book_list_header %}{% trans "Listing of all DAISY files" %}{% endblock %}