Opened 19 years ago

Closed 19 years ago

#2021 closed enhancement (fixed)

Improved Atom feed

Reported by: ned@… 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
Pull Requests:15384 unmerged, 15341 unmerged, 15340 unmerged, 14698 merged, 14384 merged, 14353 merged, 14348 unmerged, 14346 unmerged, 14349 merged, 14361 merged, 14360 merged, 14359 merged

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"})

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [3004]) Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks, Ned Batchelder

Note: See TracTickets for help on using tickets.
Back to Top