1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

[1.0.X] Fixed #6035 -- Gave the SplitDateTimeField the proper default widget. Thanks dtulig.

r9385 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey
2008-11-10 19:46:13 +00:00
parent 4a3dcd7f5e
commit 8c31bb7ca3
2 changed files with 4 additions and 1 deletions

View File

@@ -1322,6 +1322,8 @@ u'.../django/forms/fields.py'
# SplitDateTimeField ##########################################################
>>> f = SplitDateTimeField()
>>> f.widget
<django.forms.widgets.SplitDateTimeWidget object ...
>>> f.clean([datetime.date(2006, 1, 10), datetime.time(7, 30)])
datetime.datetime(2006, 1, 10, 7, 30)
>>> f.clean(None)