From 818b7ba3c373f6a10c70224d8650cdcbbd3bcd75 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 29 Dec 2011 10:17:19 +0100 Subject: [PATCH] public books in feed --- apps/catalogue/feeds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py index bf7e179a..8bb21c32 100755 --- a/apps/catalogue/feeds.py +++ b/apps/catalogue/feeds.py @@ -14,4 +14,5 @@ class PublishTrackFeed(Feed): return get_object_or_404(Chunk.tag_model, slug=slug) def items(self, obj): - return Book.objects.filter(_on_track__gte=obj.ordering).order_by('-_on_track', 'title')[:100] + return Book.objects.filter(public=True, _on_track__gte=obj.ordering + ).order_by('-_on_track', 'title') -- 2.20.1