diff --git a/tests/testapp/forms.py b/tests/testapp/forms.py index 6617e89..bd2e195 100644 --- a/tests/testapp/forms.py +++ b/tests/testapp/forms.py @@ -10,10 +10,14 @@ ) + forms.ClearableFileInput.__bases__ +class MultipleFileInput(forms.ClearableFileInput): + allow_multiple_selected = True + + class UploadForm(forms.ModelForm): class Meta: model = FileModel fields = ("file", "other_file") widgets = { - "file": forms.ClearableFileInput(attrs={"multiple": True}), + "file": MultipleFileInput(attrs={"multiple": True}), }