Django

Code

Ticket #2006 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: mhf@hex.no Assigned to: adrian
Milestone: Component: Testing framework
Version: new-admin Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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>' %(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

patch.diff (1.3 kB) - added by mhf@hex.no on 05/30/06 02:53:31.
patch

Change History

05/30/06 02:53:31 changed by mhf@hex.no

  • attachment patch.diff added.

patch

05/30/06 02:54:37 changed 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.

05/31/06 10:02:23 changed by adrian

  • description changed.

(Fixed formatting in description.)

05/31/06 10:10:02 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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

07/03/06 02:11:46 changed by anonymous

  • severity changed from minor to major.
  • component changed from Admin interface to Unit test system.
  • priority changed from normal to highest.
  • version set to new-admin.
  • milestone set to Version 0.92.
  • type changed from defect to task.

10/24/06 15:17:23 changed by adrian

  • milestone deleted.

Milestone Version 0.92 deleted


Add/Change #2006 ([patch] admin doesn't html-quote strings in breadcrumbs and filters)




Change Properties
Action