Code

Opened 6 years ago

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

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

Attachments (0)

Change History (1)

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.