diff options
| author | Neeraj Kumar <sainineeraj1234@gmail.com> | 2022-08-24 14:35:01 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-25 07:52:36 +0200 |
| commit | 9942f3fb490f56bf28ee69f0a07f3eb62e7d3ab3 (patch) | |
| tree | df4fa4c7c574c5d0ef92594ff3d02732dd7f45b8 /django/forms | |
| parent | 6f49b7b69b4e19b0362d4dff35ef7544b94c84a5 (diff) | |
Fixed #33830 -- Fixed VariableDoesNotExist when rendering ClearableFileInput.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 71f2710a2b..96cb910273 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -481,6 +481,7 @@ class ClearableFileInput(FileInput): "clear_checkbox_label": self.clear_checkbox_label, } ) + context["widget"]["attrs"].setdefault("disabled", False) return context def value_from_datadict(self, data, files, name): |
