summaryrefslogtreecommitdiff
path: root/docs/ref/forms/widgets.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/forms/widgets.txt')
-rw-r--r--docs/ref/forms/widgets.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index 850905fb40..6a8cdf3c70 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.