mirror of
https://github.com/Hopiu/django.git
synced 2026-05-11 09:03:10 +00:00
Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d3b1a9ba39
commit
d7e929a85d
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ class Atom1Feed(SyndicationFeed):
|
|||
for item in self.items:
|
||||
handler.startElement(u"entry", {})
|
||||
handler.addQuickElement(u"title", item['title'])
|
||||
handler.addQuickElement(u"link", u"", {u"href": item['link']})
|
||||
handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})
|
||||
if item['pubdate'] is not None:
|
||||
handler.addQuickElement(u"updated", rfc3339_date(item['pubdate']).decode('ascii'))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue