summaryrefslogtreecommitdiff
path: root/django/contrib/admin
diff options
context:
space:
mode:
authorJohannes Maron <johannes@maron.family>2025-12-27 12:28:26 +0100
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-31 10:14:00 -0500
commit79ab0993d0f2253e10ea638bcefc98ec2d890a47 (patch)
treeb0827141ac77599d2e51bc3a97c79e32b497a3d1 /django/contrib/admin
parentc496a7df64ec0a80c2bab7f155aad567155fb37b (diff)
Fixed #36829 -- Reverted value of ClearableFileInput.use_fieldset to True.
There was unresolved discussion regarding whether to set ClearableFileInput.use_fieldset to True or False when use_fieldset was introduced in Django 4.1, since the clear checkbox appears only sometimes. Although using <fieldset> is likely desirable, since the primary motivation in #35892 was just to improve markup in the admin, and a deprecation path was not provided for general form usage, future work is deferred to #36828. Regression in 4187da258fe212d494cb578a0bc2b52c4979ab95. Thanks Tim Graham, Antoliny, and David Smith for triage.
Diffstat (limited to 'django/contrib/admin')
-rw-r--r--django/contrib/admin/widgets.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 81b57f33aa..f5c3939012 100644
--- a/django/contrib/admin/widgets.py
+++ b/django/contrib/admin/widgets.py
@@ -122,6 +122,7 @@ class AdminRadioSelect(forms.RadioSelect):
class AdminFileWidget(forms.ClearableFileInput):
template_name = "admin/widgets/clearable_file_input.html"
+ use_fieldset = True
def url_params_from_lookup_dict(lookups):