1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #33656 -- Fixed MultiWidget crash when compressed value is a tuple.

This commit is contained in:
L
2022-04-22 14:51:39 +08:00
committed by Mariusz Felisiak
parent 4282fd468f
commit 37602e4948
3 changed files with 23 additions and 2 deletions

View File

@@ -130,6 +130,15 @@ class MultiWidgetTest(WidgetTest):
'<input type="text" class="small" value="lennon" name="name_1">'
),
)
self.check_html(
widget,
"name",
("john", "lennon"),
html=(
'<input type="text" class="big" value="john" name="name_0">'
'<input type="text" class="small" value="lennon" name="name_1">'
),
)
self.check_html(
widget,
"name",