Ticket #16591: patch.diff
File patch.diff, 991 bytes (added by , 13 years ago) |
---|
-
docs/ref/forms/widgets.txt
57 57 ('black', 'Black')) 58 58 59 59 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) 62 62 favourite_colors = forms.MultipleChoiceField(required=False, 63 widget=CheckboxSelectMultiple, choices= CHECKBOX_CHOICES)63 widget=CheckboxSelectMultiple, choices=FAVOURITE_COLORS_CHOICES) 64 64 65 65 See the :ref:`built-in widgets` for more information about which widgets 66 66 are available and which arguments they accept.