Skip to content

Commit

Permalink
Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks…
Browse files Browse the repository at this point in the history
…, Ned Batchelder

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 30, 2006
1 parent d3b1a9b commit d7e929a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/utils/feedgenerator.py
Expand Up @@ -217,7 +217,7 @@ def write_items(self, handler):
for item in self.items: for item in self.items:
handler.startElement(u"entry", {}) handler.startElement(u"entry", {})
handler.addQuickElement(u"title", item['title']) 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: if item['pubdate'] is not None:
handler.addQuickElement(u"updated", rfc3339_date(item['pubdate']).decode('ascii')) handler.addQuickElement(u"updated", rfc3339_date(item['pubdate']).decode('ascii'))


Expand Down

0 comments on commit d7e929a

Please sign in to comment.