Fixed #24956 -- Fixed typo in docs/ref/forms/widgets.txt
This commit is contained in:
parent
1e82094f1b
commit
9f825b9e28
|
@ -813,8 +813,11 @@ Composite widgets
|
||||||
field1 = forms.DateField(widget=SelectDateWidget(empty_label="Nothing"))
|
field1 = forms.DateField(widget=SelectDateWidget(empty_label="Nothing"))
|
||||||
|
|
||||||
# A custom empty label with tuple
|
# A custom empty label with tuple
|
||||||
field1 = forms.DateField(widget=SelectDateWidget(
|
field1 = forms.DateField(
|
||||||
empty_label=("Choose Year", "Choose Month", "Choose Day"))
|
widget=SelectDateWidget(
|
||||||
|
empty_label=("Choose Year", "Choose Month", "Choose Day"),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
.. versionchanged:: 1.9
|
.. versionchanged:: 1.9
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue