#33830: Variable lookup errors are logged rendering 'clearable_file_input.html'
---------------------------------+------------------------------------
Reporter: Horst Schneider | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution:
Keywords: admin, template | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by Neeraj Kumar):
{{{
<input
type="checkbox" name="{{ widget.checkbox_name }}"
id="{{ widget.checkbox_id }}"
{% if 'disabled' in widget.attrs and widget.attrs.disabled %}
disabled{% endif %}
>
}}}
This solution can work to stop the trigger for {{{disabled}}} attribute in
attrs.
--
Ticket URL: <https://code.djangoproject.com/ticket/33830#comment:9>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070182cc28c821-fa372ca4-d3a6-4f3e-9d66-3fad7340a332-000000%40eu-central-1.amazonses.com.