There was an error while loading. Please reload this page.
1 parent c57ba67 commit f8ef93aCopy full SHA for f8ef93a
docs/ref/forms/widgets.txt
@@ -75,7 +75,7 @@ changing :attr:`ChoiceField.choices` will update :attr:`Select.choices`. For
75
example::
76
77
>>> from django import forms
78
- >>> CHOICES = (('1', 'First',), ('2', 'Second',)))
+ >>> CHOICES = (('1', 'First',), ('2', 'Second',))
79
>>> choice_field = forms.ChoiceField(widget=forms.RadioSelect, choices=CHOICES)
80
>>> choice_field.choices
81
[('1', 'First'), ('2', 'Second')]
0 commit comments