mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed typo in docs/ref/forms/widgets.txt.
Thanks rgs258 for the report.
This commit is contained in:
parent
0ed6f3ba4b
commit
0ecc70b15a
@ -369,7 +369,7 @@ foundation for custom widgets.
|
|||||||
for one widget. For example::
|
for one widget. For example::
|
||||||
|
|
||||||
>>> widget = MultiWidget(widgets={'': TextInput, 'last': TextInput})
|
>>> widget = MultiWidget(widgets={'': TextInput, 'last': TextInput})
|
||||||
>>> widget.render('name', ['john', 'lennon'])
|
>>> widget.render('name', ['john', 'paul'])
|
||||||
'<input type="text" name="name" value="john"><input type="text" name="name_last" value="paul">'
|
'<input type="text" name="name" value="john"><input type="text" name="name_last" value="paul">'
|
||||||
|
|
||||||
.. versionchanged::3.1
|
.. versionchanged::3.1
|
||||||
|
Loading…
Reference in New Issue
Block a user