Ticket #36829: ticket-36829.patch

File ticket-36829.patch, 886 bytes (added by Johannes Maron, 13 hours ago)
  • django/contrib/admin/widgets.py

    diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
    index 81b57f33aa..f5c3939012 100644
    a b class AdminRadioSelect(forms.RadioSelect):  
    122122
    123123class AdminFileWidget(forms.ClearableFileInput):
    124124    template_name = "admin/widgets/clearable_file_input.html"
     125    use_fieldset = True
    125126
    126127
    127128def url_params_from_lookup_dict(lookups):
  • django/forms/widgets.py

    diff --git a/django/forms/widgets.py b/django/forms/widgets.py
    index b77e57abce..1bcfeba288 100644
    a b class ClearableFileInput(FileInput):  
    530530    input_text = _("Change")
    531531    template_name = "django/forms/widgets/clearable_file_input.html"
    532532    checked = False
    533     use_fieldset = True
     533    use_fieldset = False
    534534
    535535    def clear_checkbox_name(self, name):
    536536        """
Back to Top