From 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 1 Feb 2023 07:13:39 +0000 Subject: Refs #33476 -- Applied Black's 2023 stable style. Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 --- django/forms/widgets.py | 1 - 1 file changed, 1 deletion(-) (limited to 'django/forms/widgets.py') diff --git a/django/forms/widgets.py b/django/forms/widgets.py index a53569c5a3..842b73e95c 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -482,7 +482,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 -- cgit v1.3