mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #5794 -- Be more robust when rendering a DateTimeInput widget. Thanks,
MikeH. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -855,6 +855,8 @@ u'<input type="text" class="pretty" value="2006-01-10" name="date_0" /><input ty
|
||||
# DateTimeInput ###############################################################
|
||||
|
||||
>>> w = DateTimeInput()
|
||||
>>> w.render('date', None)
|
||||
u'<input type="text" name="date" />'
|
||||
>>> d = datetime.datetime(2007, 9, 17, 12, 51, 34, 482548)
|
||||
>>> print d
|
||||
2007-09-17 12:51:34.482548
|
||||
|
||||
Reference in New Issue
Block a user