Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2006 closed task (fixed)

[patch] admin doesn't html-quote strings in breadcrumbs and filters

Reported by: mhf@… Owned by: Adrian Holovaty
Component: Testing framework Version: new-admin
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by Adrian Holovaty)

When the admin site uses a models str()-method, it doesn't html-quote it.
For example:

    def __str__(self):
        return '%s <%s>' %(self.name, self.email)

would show up in the admin site as just the name, because my browser thinks <email> is a bad tag.

Attachments (1)

patch.diff (1.3 KB) - added by mhf@… 10 years ago.
patch

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by mhf@…

Attachment: patch.diff added

patch

comment:1 Changed 10 years ago by anonymous

Summary: django admin doesn't quote str()-output in templates.[patch] admin doesn't html-quote strings in breadcrumbs and filters

comment:2 Changed 10 years ago by Adrian Holovaty

Description: modified (diff)

(Fixed formatting in description.)

comment:3 Changed 10 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3023]) Fixed #2006 -- Admin now quotes strings in breadcrumbs and filters. Thanks, mhf@…

comment:4 Changed 10 years ago by anonymous

Component: Admin interfaceUnit test system
milestone: Version 0.92
priority: normalhighest
Severity: minormajor
Type: defecttask
Version: new-admin

comment:5 Changed 10 years ago by Adrian Holovaty

milestone: Version 0.92

Milestone Version 0.92 deleted

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