#33946: admin change_form field label does not use mark_safe -----------------------------------------+------------------------ Reporter: Caram | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 4.1 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 1 UI/UX: 1 | -----------------------------------------+------------------------ Example:
**models.py** {{{ myfield = models.BooleanField(format_html('<i class="fa-regular fa- hourglass-half"</i>')) }}} **generated HTML** {{{ <label class="vCheckboxLabel" for="id_myfield"><i class="fa- regular fa-hourglass-half"></i></label> }}} The issue only occurs for change_form.html. In other words, change_list.html handles this case well. -- Ticket URL: <https://code.djangoproject.com/ticket/33946> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070182c67f4abe-3d9f7520-cc27-4c28-ab8c-22a3091d4237-000000%40eu-central-1.amazonses.com.