summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorNeeraj Kumar <sainineeraj1234@gmail.com>2022-08-24 14:35:01 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-08-25 07:52:36 +0200
commit9942f3fb490f56bf28ee69f0a07f3eb62e7d3ab3 (patch)
treedf4fa4c7c574c5d0ef92594ff3d02732dd7f45b8 /django/forms/widgets.py
parent6f49b7b69b4e19b0362d4dff35ef7544b94c84a5 (diff)
Fixed #33830 -- Fixed VariableDoesNotExist when rendering ClearableFileInput.
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py1
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):