Try putting these settings in each class.
I am not sure what the loop was for anyway.
This commit is contained in:
parent
18addfe969
commit
2c63f6b33e
1 changed files with 3 additions and 5 deletions
|
@ -34,6 +34,7 @@ class ConservancyFeedBase(Feed):
|
||||||
return { 'year' : year }
|
return { 'year' : year }
|
||||||
|
|
||||||
class PressReleaseFeed(Feed):
|
class PressReleaseFeed(Feed):
|
||||||
|
get_absolute_url = '/feeds/news/'
|
||||||
title = "Software Freedom Conservancy News"
|
title = "Software Freedom Conservancy News"
|
||||||
link = "/news/"
|
link = "/news/"
|
||||||
description = ""
|
description = ""
|
||||||
|
@ -64,6 +65,7 @@ class OmnibusFeedType(Rss201rev2Feed):
|
||||||
handler.addQuickElement("itunes:block", 'Yes')
|
handler.addQuickElement("itunes:block", 'Yes')
|
||||||
|
|
||||||
class OmnibusFeed(ConservancyFeedBase):
|
class OmnibusFeed(ConservancyFeedBase):
|
||||||
|
get_absolute_url = '/feeds/omnibus/'
|
||||||
feed_type = OmnibusFeedType
|
feed_type = OmnibusFeedType
|
||||||
link ="/news/"
|
link ="/news/"
|
||||||
title = "The Software Freedom Conservancy"
|
title = "The Software Freedom Conservancy"
|
||||||
|
@ -138,6 +140,7 @@ class OmnibusFeed(ConservancyFeedBase):
|
||||||
|
|
||||||
class BlogFeed(ConservancyFeedBase):
|
class BlogFeed(ConservancyFeedBase):
|
||||||
link = "/blog/"
|
link = "/blog/"
|
||||||
|
get_absolute_url = '/feeds/blog/'
|
||||||
|
|
||||||
def title(self):
|
def title(self):
|
||||||
answer = "The Software Freedom Conservancy Blog"
|
answer = "The Software Freedom Conservancy Blog"
|
||||||
|
@ -238,11 +241,6 @@ class BlogFeed(ConservancyFeedBase):
|
||||||
return queryset.order_by('-pub_date')[:10]
|
return queryset.order_by('-pub_date')[:10]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BlogFeed.get_absolute_url = '/feeds/blog/'
|
|
||||||
PressRelease.get_absolute_url = '/feeds/news/'
|
|
||||||
OmnibusFeed.get_absolute_url = '/feeds/omnibus/'
|
|
||||||
|
|
||||||
def view(request):
|
def view(request):
|
||||||
"""Listing of all available feeds
|
"""Listing of all available feeds
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue