Ticket #7437: SelectDateWidget-doc.diff

File SelectDateWidget-doc.diff, 707 bytes (added by Tim Graham, 16 years ago)
  • docs/ref/forms/widgets.txt

     
    94104    Wrapper around two ``TextInput`` widgets: one for the date, and one for the
    95105    time.
    96106
     107.. class:: SelectDateWidget
     108
     109    Wrapper around three select widgets: one each for month, day, and year. 
     110    Note that this widget lives in a separate file from the standard widgets.
     111   
     112    .. code-block:: python
     113 
     114        from django.forms.extras.widgets import SelectDateWidget
     115
     116        date = forms.DateField(widget=SelectDateWidget())
     117
     118
    97119Specifying widgets
    98120------------------
    99121
Back to Top