public books in feed
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 29 Dec 2011 09:17:19 +0000 (10:17 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 29 Dec 2011 09:17:19 +0000 (10:17 +0100)
apps/catalogue/feeds.py

index bf7e179..8bb21c3 100755 (executable)
@@ -14,4 +14,5 @@ class PublishTrackFeed(Feed):
         return get_object_or_404(Chunk.tag_model, slug=slug)
 
     def items(self, obj):
         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')