mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #33830 -- Fixed VariableDoesNotExist when rendering ClearableFileInput.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6f49b7b69b
commit
9942f3fb49
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user