mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed a documentation typo on the widget page.
This commit is contained in:
parent
c57ba67331
commit
f8ef93a657
@ -75,7 +75,7 @@ changing :attr:`ChoiceField.choices` will update :attr:`Select.choices`. For
|
||||
example::
|
||||
|
||||
>>> from django import forms
|
||||
>>> CHOICES = (('1', 'First',), ('2', 'Second',)))
|
||||
>>> CHOICES = (('1', 'First',), ('2', 'Second',))
|
||||
>>> choice_field = forms.ChoiceField(widget=forms.RadioSelect, choices=CHOICES)
|
||||
>>> choice_field.choices
|
||||
[('1', 'First'), ('2', 'Second')]
|
||||
|
Loading…
Reference in New Issue
Block a user