Fixed #16434 - corrected "django.forms.widgets.extras" to "django.forms.extras.widgets"; thanks rfk.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Timo Graham 2011-07-09 12:19:29 +00:00
parent 823a231500
commit ee7cac0806
1 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ Setting arguments for widgets
Many widgets have optional extra arguments; they can be set when defining the Many widgets have optional extra arguments; they can be set when defining the
widget on the field. In the following example, the widget on the field. In the following example, the
:attr:`~SelectDateWidget.years` attribute is set for a :attr:`~SelectDateWidget.years` attribute is set for a
:class:`~django.forms.widgets.extras.SelectDateWidget`: :class:`~django.forms.extras.widgets.SelectDateWidget`:
.. code-block:: python .. code-block:: python
from django.forms.fields import DateField, ChoiceField, MultipleChoiceField from django.forms.fields import DateField, ChoiceField, MultipleChoiceField
from django.forms.widgets import RadioSelect, CheckboxSelectMultiple from django.forms.widgets import RadioSelect, CheckboxSelectMultiple
from django.forms.widgets.extras import SelectDateWidget from django.forms.extras.widgets import SelectDateWidget
BIRTH_YEAR_CHOICES = ('1980', '1981', '1982') BIRTH_YEAR_CHOICES = ('1980', '1981', '1982')
GENDER_CHOICES = (('m', 'Male'), ('f', 'Female')) GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'))
@ -402,7 +402,7 @@ commonly used groups of widgets:
Similar to :class:`SplitDateTimeWidget`, but uses :class:`HiddenInput` for Similar to :class:`SplitDateTimeWidget`, but uses :class:`HiddenInput` for
both date and time. both date and time.
.. currentmodule:: django.forms.widgets.extras .. currentmodule:: django.forms.extras.widgets
.. class:: SelectDateWidget .. class:: SelectDateWidget