Code

Ticket #7437: SelectDateWidget-doc.diff

File SelectDateWidget-doc.diff, 707 bytes (added by timo, 5 years ago)
Line 
1Index: docs/ref/forms/widgets.txt
2===================================================================
3--- docs/ref/forms/widgets.txt  (revision 10105)
4+++ docs/ref/forms/widgets.txt  (working copy)
5@@ -94,6 +104,18 @@
6     Wrapper around two ``TextInput`` widgets: one for the date, and one for the
7     time.
8 
9+.. class:: SelectDateWidget
10+
11+    Wrapper around three select widgets: one each for month, day, and year. 
12+    Note that this widget lives in a separate file from the standard widgets.
13+   
14+    .. code-block:: python
15+
16+        from django.forms.extras.widgets import SelectDateWidget
17+
18+        date = forms.DateField(widget=SelectDateWidget())
19+
20+
21 Specifying widgets
22 ------------------
23