Opened 9 years ago

Closed 9 years ago

#5973 closed (fixed)

allow_tags in admin interface broken by auto-escaping

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

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 Changed 9 years ago by Malcolm Tredinnick

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