diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py
index de924a3..7e22ee8 100644
a
|
b
|
class RssFeed(SyndicationFeed):
|
186 | 186 | handler.endElement(u"rss") |
187 | 187 | |
188 | 188 | def rss_attributes(self): |
189 | | return {u"version": self._version} |
| 189 | return {u"version": self._version, |
| 190 | u"xmlns:atom": "http://www.w3.org/2005/Atom"} |
190 | 191 | |
191 | 192 | def write_items(self, handler): |
192 | 193 | for item in self.items: |
… |
… |
class RssFeed(SyndicationFeed):
|
198 | 199 | handler.addQuickElement(u"title", self.feed['title']) |
199 | 200 | handler.addQuickElement(u"link", self.feed['link']) |
200 | 201 | handler.addQuickElement(u"description", self.feed['description']) |
| 202 | handler.addQuickElement(u"atom:link", None, {u"rel": u"self", u"href": self.feed['feed_url']}) |
201 | 203 | if self.feed['language'] is not None: |
202 | 204 | handler.addQuickElement(u"language", self.feed['language']) |
203 | 205 | for cat in self.feed['categories']: |
diff --git a/tests/regressiontests/syndication/tests.py b/tests/regressiontests/syndication/tests.py
index 1410ed7..34a0a1b 100644
a
|
b
|
class SyndicationFeedTest(TestCase):
|
33 | 33 | chan_elem = feed.getElementsByTagName('channel') |
34 | 34 | self.assertEqual(len(chan_elem), 1) |
35 | 35 | chan = chan_elem[0] |
36 | | self.assertChildNodes(chan, ['title', 'link', 'description', 'language', 'lastBuildDate', 'item']) |
| 36 | self.assertChildNodes(chan, ['title', 'link', 'description', 'language', 'lastBuildDate', 'item', 'atom:link']) |
37 | 37 | |
38 | 38 | items = chan.getElementsByTagName('item') |
39 | 39 | self.assertEqual(len(items), Entry.objects.count()) |