Opened 17 years ago
Closed 17 years ago
#5973 closed (fixed)
allow_tags in admin interface broken by auto-escaping
Reported by: | 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
Note:
See TracTickets
for help on using tickets.
(In [6703]) Fixed #5973 -- Fixed inadvertent allow_tags=True auto-escaping problem.