Admin changelist broken for model instances with __html__ method
Since [85366fbca723c9b37d0ac9db1d44e3f1cb188db2] (#34045), any model instance implementing an __html__
method producing HTML markup is breaking the admin, because of the aria-label property will contain unescaped quotes that will break the page HTML.
Maybe the solution is forcing str(obj)
in the format_html
call.
Change History
(9)
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Owner: |
set to Hisham Mahmood
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Thank you! Replicated
I think this works 👍