Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2006 closed task (fixed)

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

Reported by: mhf@… Owned by: adrian
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)

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

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

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@… 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by mhf@…


comment:1 Changed 8 years ago by anonymous

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

comment:2 Changed 8 years ago by adrian

  • Description modified (diff)

(Fixed formatting in description.)

comment:3 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 8 years ago by anonymous

  • Component changed from Admin interface to Unit test system
  • milestone set to Version 0.92
  • priority changed from normal to highest
  • Severity changed from minor to major
  • Type changed from defect to task
  • Version set to new-admin

comment:5 Changed 7 years ago by adrian

  • milestone Version 0.92 deleted

Milestone Version 0.92 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.