Opened 19 years ago
Closed 18 years ago
#2021 closed enhancement (fixed)
Improved Atom feed
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The Atom feed in feedgenerator creates <link href='...'/> elements with no rel attribute. The Atom spec says this is OK, and should be interepreted as rel='alternate', but Bloglines and Safari don't seem to do it. So feedgenerator should output rel='alternate' to be more explicit.
Patch: in django\utils\feedgenerator.py, at line 220, change this line:
handler.addQuickElement(u"link", u"", {u"href": item['link']})
to:
handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})
Note:
See TracTickets
for help on using tickets.
(In [3004]) Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks, Ned Batchelder