Author: gabrielhurley
Date: 2011-08-18 15:39:20 -0700 (Thu, 18 Aug 2011)
New Revision: 16626
Modified:
django/trunk/docs/ref/forms/widgets.txt
Log:
Fixed #16591 -- Fixed some mismatched variable names in a widgets reference
example. Thanks to santi.romero, el barto, and julien.
Modified: django/trunk/docs/ref/forms/widgets.txt
===================================================================
--- django/trunk/docs/ref/forms/widgets.txt 2011-08-18 22:31:32 UTC (rev
16625)
+++ django/trunk/docs/ref/forms/widgets.txt 2011-08-18 22:39:20 UTC (rev
16626)
@@ -52,15 +52,15 @@
BIRTH_YEAR_CHOICES = ('1980', '1981', '1982')
GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'))
- FAVOURITE_COLORS_CHOICES = (('blue', 'Blue'),
+ FAVORITE_COLORS_CHOICES = (('blue', 'Blue'),
('green', 'Green'),
('black', 'Black'))
class SimpleForm(forms.Form):
- birth_year = DateField(widget=SelectDateWidget(years=YEAR_CHOICES))
- gender = ChoiceField(widget=RadioSelect, choices=RADIO_CHOICES)
- favourite_colors = forms.MultipleChoiceField(required=False,
- widget=CheckboxSelectMultiple, choices=CHECKBOX_CHOICES)
+ birth_year =
DateField(widget=SelectDateWidget(years=BIRTH_YEAR_CHOICES))
+ gender = ChoiceField(widget=RadioSelect, choices=GENDER_CHOICES)
+ favorite_colors = forms.MultipleChoiceField(required=False,
+ widget=CheckboxSelectMultiple, choices=FAVORITE_COLORS_CHOICES)
See the :ref:`built-in widgets` for more information about which widgets
are available and which arguments they accept.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.