SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b48a6e51 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct news feed: only published items, on homepage

parent d651c18e
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class LatestNewsFeedRSS(Feed):
description = "SciPost: recent news and announcements"
def items(self):
return NewsItem.objects.order_by('-date')[:5]
return NewsItem.objects.homepage.order_by('-date')[:5]
def item_title(self, item):
return item.headline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment