Ticket #16434: widget_docs_extras.patch

File widget_docs_extras.patch, 1.2 KB (added by Ryan Kelly, 13 years ago)
  • docs/ref/forms/widgets.txt

     
    4242Many widgets have optional extra arguments; they can be set when defining the
    4343widget on the field. In the following example, the
    4444:attr:`~SelectDateWidget.years` attribute is set for a
    45 :class:`~django.forms.widgets.extras.SelectDateWidget`:
     45:class:`~django.forms.extras.widgets.SelectDateWidget`:
    4646
    4747    .. code-block:: python
    4848
    4949        from django.forms.fields import DateField, ChoiceField, MultipleChoiceField
    5050        from django.forms.widgets import RadioSelect, CheckboxSelectMultiple
    51         from django.forms.widgets.extras import SelectDateWidget
     51        from django.forms.extras.widgets import SelectDateWidget
    5252
    5353        BIRTH_YEAR_CHOICES = ('1980', '1981', '1982')
    5454        GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'))
     
    402402    Similar to :class:`SplitDateTimeWidget`, but uses :class:`HiddenInput` for
    403403    both date and time.
    404404
    405 .. currentmodule:: django.forms.widgets.extras
     405.. currentmodule:: django.forms.extras.widgets
    406406
    407407.. class:: SelectDateWidget
    408408
Back to Top