diff options
Diffstat (limited to 'docs/ref/forms/widgets.txt')
| -rw-r--r-- | docs/ref/forms/widgets.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 5636e5a8ba..809a2ee07f 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -62,8 +62,11 @@ widget on the field. In the following example, the class SimpleForm(forms.Form): birth_year = forms.DateField(widget=forms.SelectDateWidget(years=BIRTH_YEAR_CHOICES)) - favorite_colors = forms.MultipleChoiceField(required=False, - widget=forms.CheckboxSelectMultiple, choices=FAVORITE_COLORS_CHOICES) + favorite_colors = forms.MultipleChoiceField( + required=False, + widget=forms.CheckboxSelectMultiple, + choices=FAVORITE_COLORS_CHOICES, + ) See the :ref:`built-in widgets` for more information about which widgets are available and which arguments they accept. |
