diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-25 19:09:44 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-25 19:09:44 +0000 |
| commit | cbd574881c48e095b118031c850367f86b597a2e (patch) | |
| tree | bf7ab44fa49b27c462877791a0611eb03b9da7a9 /tests/regressiontests | |
| parent | 7e06b69a3d1e1cdfef625bdf96f97ca5eb0eed74 (diff) | |
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
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/forms/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py index e0d9f42db5..df0f5d6fd7 100644 --- a/tests/regressiontests/forms/widgets.py +++ b/tests/regressiontests/forms/widgets.py @@ -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" />' """ |
