Commit ce153691 authored by fred's avatar fred

misc: publish latest 20 items in rss feeds

parent 186b2e90
...@@ -676,7 +676,7 @@ class PodcastsFeed(Feed): ...@@ -676,7 +676,7 @@ class PodcastsFeed(Feed):
def items(self): def items(self):
return SoundFile.objects.select_related().filter( return SoundFile.objects.select_related().filter(
podcastable=True).order_by('-creation_timestamp')[:5] podcastable=True).order_by('-creation_timestamp')[:20]
def item_title(self, item): def item_title(self, item):
if item.fragment: if item.fragment:
...@@ -715,7 +715,7 @@ class RssNewsFeed(Feed): ...@@ -715,7 +715,7 @@ class RssNewsFeed(Feed):
description_template = 'feed/newsitem.html' description_template = 'feed/newsitem.html'
def items(self): def items(self):
return NewsItem.objects.order_by('-date')[:10] return NewsItem.objects.order_by('-date')[:20]
rss_news_feed = RssNewsFeed() rss_news_feed = RssNewsFeed()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment