summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorChris Beaven <smileychris@gmail.com>2010-11-23 02:46:55 +0000
committerChris Beaven <smileychris@gmail.com>2010-11-23 02:46:55 +0000
commit4c5bf6c76ccad386563fd590d045a57501d6714e (patch)
treef8428300a219e48ba325cdd88933334c6ad945da /docs/ref
parent2efb4757af8c6d6a757779e68671c1455dde95b6 (diff)
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
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/forms/widgets.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index aa1661f1cb..5f66e68f6a 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -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