X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/84e2c528c61c6018ab21d1729ee32f34d3653b8e..e194b9c8b1f7598814b77622768a10b56d7436a1:/apps/catalogue/feeds.py?ds=sidebyside diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py index bf7e179a..a185ae39 100755 --- a/apps/catalogue/feeds.py +++ b/apps/catalogue/feeds.py @@ -13,5 +13,9 @@ class PublishTrackFeed(Feed): def get_object(self, request, slug): return get_object_or_404(Chunk.tag_model, slug=slug) + def item_title(self, item): + return item.title + 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')