Opened 11 years ago

Closed 11 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:



class Foo(models.Model):

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

    class Admin:

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

Change History (1)

comment:1 Changed 11 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