Skip to content

Commit 92fec2c

Browse files
committed
Address Django security patch in test suite
See also: https://code.djangoproject.com/ticket/31710
1 parent 0049b6f commit 92fec2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testapp/forms.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
) + forms.ClearableFileInput.__bases__
1111

1212

13+
class MultipleFileInput(forms.ClearableFileInput):
14+
allow_multiple_selected = True
15+
16+
1317
class UploadForm(forms.ModelForm):
1418
class Meta:
1519
model = FileModel
1620
fields = ("file", "other_file")
1721
widgets = {
18-
"file": forms.ClearableFileInput(attrs={"multiple": True}),
22+
"file": MultipleFileInput(attrs={"multiple": True}),
1923
}

0 commit comments

Comments
 (0)