mirror of https://github.com/django/django.git
Fixed #3958 -- Added lastBuildDate element to RSS feeds. Thanks,
baptiste.goupil@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e4671d158c
commit
db8ca44981
|
@ -132,6 +132,7 @@ class RssFeed(SyndicationFeed):
|
|||
handler.addQuickElement(u"category", cat)
|
||||
if self.feed['feed_copyright'] is not None:
|
||||
handler.addQuickElement(u"copyright", self.feed['feed_copyright'])
|
||||
handler.addQuickElement(u"lastBuildDate", rfc2822_date(self.latest_post_date()).decode('ascii'))
|
||||
self.write_items(handler)
|
||||
self.endChannelElement(handler)
|
||||
handler.endElement(u"rss")
|
||||
|
|
Loading…
Reference in New Issue