Opened 8 years ago

Closed 8 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:
Needs tests: Patch needs improvement:
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 8 years ago by mtredinnick

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

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

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