Opened 9 years ago

Closed 8 years ago

#6109 closed (fixed)

Fieldset description is autoescaped in admin

Reported by: Øyvind Saltvik <oyvind@…> Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: autoescaped fieldset
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/change_form.html#L37

Should add a |safe for the description since the docs says it should not be escaped

Attachments (1)

description_autoescape.diff (880 bytes) - added by SomeGuy <SomeGuy@…> 9 years ago.

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by SomeGuy <SomeGuy@…>

Attachment: description_autoescape.diff added

comment:1 Changed 9 years ago by SomeGuy <SomeGuy@…>

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 Changed 9 years ago by Chris Beaven

Triage Stage: AcceptedReady for checkin

Yep, the docs clearly state that it shouldn't be escaped: http://www.djangoproject.com/documentation/model-api/#description

comment:3 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [7078]) Fixed #6109 -- Marked fieldset descriptions as safe from auto-escaping. Good
catch, SomeGuy.

comment:4 Changed 8 years ago by Luke Plant

Resolution: fixed
Status: closedreopened

comment:5 Changed 8 years ago by Luke Plant

This is broken again, since newforms-admin was merged I think.

comment:6 Changed 8 years ago by Luke Plant

Resolution: fixed
Status: reopenedclosed

(In [8073]) Fixed #6109 again.

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