From: Radek Czajka Date: Thu, 29 Dec 2011 09:17:19 +0000 (+0100) Subject: public books in feed X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/818b7ba3c373f6a10c70224d8650cdcbbd3bcd75?ds=sidebyside public books in feed --- 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')