Ticket #16591: patch.diff

File patch.diff, 991 bytes (added by elbarto, 4 years ago)
  • docs/ref/forms/widgets.txt

     
    5757                                    ('black', 'Black'))
    5858
    5959        class SimpleForm(forms.Form):
    60             birth_year = DateField(widget=SelectDateWidget(years=YEAR_CHOICES))
    61             gender = ChoiceField(widget=RadioSelect, choices=RADIO_CHOICES)
     60            birth_year = DateField(widget=SelectDateWidget(years=BIRTH_YEAR_CHOICES))
     61            gender = ChoiceField(widget=RadioSelect, choices=GENDER_CHOICES)
    6262            favourite_colors = forms.MultipleChoiceField(required=False,
    63                 widget=CheckboxSelectMultiple, choices=CHECKBOX_CHOICES)
     63                widget=CheckboxSelectMultiple, choices=FAVOURITE_COLORS_CHOICES)
    6464
    6565See the :ref:`built-in widgets` for more information about which widgets
    6666are available and which arguments they accept.
Back to Top