Ticket #14759: widgets.diff

File widgets.diff, 700 bytes (added by elbarto, 13 years ago)
  • docs/ref/forms/widgets.txt

     
    175175    Wrapper around three select widgets: one each for month, day, and year.
    176176    Note that this widget lives in a separate file from the standard widgets.
    177177
     178    Takes one optional argument:
     179
     180    .. attribute:: List.years
     181
     182        Is an optional list/tuple of years to use in the "year" select box.
     183        The default is a list from the current year and the next 9 years.
     184
    178185    .. code-block:: python
    179186
    180187        from django.forms.extras.widgets import SelectDateWidget
Back to Top