Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit d7e929a85d9dcca8e55d946c0bdbab960521aa68 1 parent d3b1a9b
Adrian Holovaty authored May 30, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/utils/feedgenerator.py
2  django/utils/feedgenerator.py
@@ -217,7 +217,7 @@ def write_items(self, handler):
217 217
         for item in self.items:
218 218
             handler.startElement(u"entry", {})
219 219
             handler.addQuickElement(u"title", item['title'])
220  
-            handler.addQuickElement(u"link", u"", {u"href": item['link']})
  220
+            handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})
221 221
             if item['pubdate'] is not None:
222 222
                 handler.addQuickElement(u"updated", rfc3339_date(item['pubdate']).decode('ascii'))
223 223
 

0 notes on commit d7e929a

Please sign in to comment.
Something went wrong with that request. Please try again.