#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 Carlton Gibson):
The issue with the `{% if 'disabled' in widget.attrs and
widget.attrs.disabled %} disabled{% endif %}` approach is that it makes
the template somewhat verbose.
The thought is that was can avoid that by setting a default `False` for
the disabled attribute in `ClearableFileInput` — If that works (i.e.
doesn't trigger the `VariableDoesNotExist`, shown by a new test similar to
those added in e.g. 0a4a5e5bacc354df3132d0fcf706839c21afb89d, and doesn't
break any existing tests) then that would be the preferred candidate for a
fix.
--
Ticket URL: <https://code.djangoproject.com/ticket/33830#comment:11>
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/01070182ceb31c0a-4af15650-06ab-42fb-8016-b081691034ad-000000%40eu-central-1.amazonses.com.