summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index c5c531ada7..9dd30095aa 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -489,7 +489,6 @@ class ClearableFileInput(FileInput):
if not self.is_required and CheckboxInput().value_from_datadict(
data, files, self.clear_checkbox_name(name)
):
-
if upload:
# If the user contradicts themselves (uploads a new file AND
# checks the "clear" checkbox), we return a unique marker