@@ -40,16 +40,16 @@ class PressReleaseFeed(Feed):
description = ""
def items(self):
return PressRelease.objects.filter(pub_date__lte=datetime.now(),
sites__id__exact=settings.SITE_ID).order_by('-pub_date')[:10]
def item_title(self, item):
return item.title
return item.headline
def item_description(self, item):
return item.summary
def item_pubdate(self, item):
return item.pub_date
class OmnibusFeedType(Rss201rev2Feed):
def root_attributes(self):
@@ -79,16 +79,16 @@ class OmnibusFeed(ConservancyFeedBase):
description_template = "feeds/omnibus_description.html"
author_email = "info@sfconservancy.org"
author_link = "https://sfconservancy.org/"
author_name = "Software Freedom Conservancy"
return item.description
def item_enclosure_mime_type(self): return "audio/mpeg"
def item_enclosure_url(self, item):
if hasattr(item, 'mp3_path'):
return "https://sfconservancy.org" + item.mp3_path
@@ -208,16 +208,16 @@ class BlogFeed(ConservancyFeedBase):
answer = "All blogs at the Software Freedom Conservancy"
answer += "."
return answer
def item_author_name(self, item):
return item.author.formal_name
def item_author_email(self, item):
GET = self.request.GET