1
0
mirror of https://github.com/django/django.git synced 2025-02-28 19:44:35 +00:00

Fixed #786 -- Atom feeds now put links in a href element. Thanks, mattycakes

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-14 04:16:09 +00:00
parent f6bf41e59a
commit 33b7ef290e

View File

@ -209,7 +209,7 @@ class Atom1Feed(SyndicationFeed):
for item in self.items:
handler.startElement(u"entry", {})
handler.addQuickElement(u"title", item['title'])
handler.addQuickElement(u"link", item['link'])
handler.addQuickElement(u"link", u"", {u"href": item['link']})
if item['pubdate'] is not None:
handler.addQuickElement(u"updated", rfc2822_date(item['pubdate']).decode('ascii'))