0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixes #14759 -- document the 'years' argument for SelectDateWidget. Thanks Bartolomé Sánchez

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Chris Beaven 2010-11-23 02:46:55 +00:00
parent 2efb4757af
commit 4c5bf6c76c

View File

@ -175,6 +175,13 @@ commonly used groups of widgets:
Wrapper around three select widgets: one each for month, day, and year.
Note that this widget lives in a separate file from the standard widgets.
Takes one optional argument:
.. attribute:: List.years
An optional list/tuple of years to use in the "year" select box.
The default is a list containing the current year and the next 9 years.
.. code-block:: python
from django.forms.extras.widgets import SelectDateWidget