Ticket #786: atom-link.txt

File atom-link.txt, 649 bytes (added by mattycakes@…, 18 years ago)

Patch

Line 
1Index: django/utils/feedgenerator.py
2===================================================================
3--- django/utils/feedgenerator.py (revision 1224)
4+++ django/utils/feedgenerator.py (working copy)
5@@ -209,7 +209,7 @@
6 for item in self.items:
7 handler.startElement(u"entry", {})
8 handler.addQuickElement(u"title", item['title'])
9- handler.addQuickElement(u"link", item['link'])
10+ handler.addQuickElement(u"link", "", {u"href": item['link']})
11 if item['pubdate'] is not None:
12 handler.addQuickElement(u"updated", rfc2822_date(item['pubdate']).decode('ascii'))
13
Back to Top