Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixes #14759 -- document the 'years' argument for SelectDateWidget. T…

…hanks Bartolomé Sánchez

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2efb475 commit 4c5bf6c76ccad386563fd590d045a57501d6714e @SmileyChris SmileyChris committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/ref/forms/widgets.txt
7 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

0 comments on commit 4c5bf6c

Please sign in to comment.
Something went wrong with that request. Please try again.