Opened 16 years ago

Closed 16 years ago

#5973 closed (fixed)

allow_tags in admin interface broken by auto-escaping

Reported by: alex@… Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

example:

class Foo(models.Model):
    ...

    def link(self):
        return "<a href='foo'>bar</a>"
    link.allow_tags=True

    class Admin:
        list_display('link')

works only if the string returned by link is manually marked as safe

Change History (1)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [6703]) Fixed #5973 -- Fixed inadvertent allow_tags=True auto-escaping problem.

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