From 06954b630bc0f09afd4e7e1e9cd04a53ff6347b4 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 4 Feb 2011 13:50:13 +0100 Subject: [PATCH] all audiobooks ever feed instead of public audiobooks in all formats --- apps/catalogue/feeds.py | 4 ++-- wolnelektury/templates/catalogue/audiobook_list.html | 1 - wolnelektury/templates/catalogue/daisy_list.html | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) 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 %} -- 2.20.1