From d7e929a85d9dcca8e55d946c0bdbab960521aa68 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 30 May 2006 01:12:52 +0000 Subject: [PATCH] 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 --- django/utils/feedgenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py index f7c25f2933c..4c5d515f41b 100644 --- a/django/utils/feedgenerator.py +++ b/django/utils/feedgenerator.py @@ -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'))