Skip to content

Commit 6109388

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/testapp/forms.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
) + forms.ClearableFileInput.__bases__
1111

1212

13+
class MultipleFileInput(forms.ClearableFileInput):
14+
allow_multiple_selected = True
15+
16+
17+
1318
class UploadForm(forms.ModelForm):
1419
class Meta:
1520
model = FileModel
1621
fields = ("file", "other_file")
1722
widgets = {
18-
"file": forms.ClearableFileInput(attrs={"multiple": True}),
23+
"file": MultipleFileInput(attrs={"multiple": True}),
1924
}

0 commit comments

Comments
 (0)