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

Updated TimeInput changes from [8491] to allow time widgets to be used with unicode values. Fixes #7499.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss
2008-08-25 19:09:44 +00:00
parent 7e06b69a3d
commit cbd574881c
2 changed files with 6 additions and 1 deletions

View File

@@ -1104,5 +1104,9 @@ u'<input type="text" name="time" value="12:51:34" />'
u'<input type="text" name="time" value="12:51:34" />'
>>> w.render('time', datetime.time(12, 51))
u'<input type="text" name="time" value="12:51:00" />'
We should be able to initialize from a unicode value.
>>> w.render('time', u'13:12:11')
u'<input type="text" name="time" value="13:12:11" />'
"""