exclude hidden in rss feed

This commit is contained in:
Tomáš Mládek 2020-03-20 16:30:22 +01:00
parent 9f61506839
commit ece0a1cc5c

View file

@ -97,7 +97,7 @@ class RecentlyUploadedFeed(Feed):
description = "A list of most recently uploaded documents." description = "A list of most recently uploaded documents."
def items(self): def items(self):
return Document.objects.order_by('-uploaded')[:5] return Document.exclude_hidden.order_by('-uploaded')[:5]
def item_title(self, item): def item_title(self, item):
return item.title return item.title