This works in Django 1.11.2:
{{{
import datetime
from django import forms
input = forms.TimeInput(format=u'τ-%H:%M')
input.render('my-input', datetime.time(10, 10))
> u'<input type="text" name="my-input" value="\u03c4-10:10" />'
}}}
This fails in Django 1.11.3 however and an empty value is rendered
instead:
{{{
> u'<input type="text" name="my-input" value="" />'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28355>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/28355#comment:1>
* has_patch: 0 => 1
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
[https://github.com/django/django/pull/8697 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/28355#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"81febf4defe6f6da2dea80f24082b282b8bf30ca" 81febf4d]:
{{{
#!CommitTicketReference repository=""
revision="81febf4defe6f6da2dea80f24082b282b8bf30ca"
[1.11.x] Fixed #28355 -- Fixed widget rendering of non-ASCII date/time
formats on Python 2.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28355#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"42e91cd6f4a5ea79ebacbc58a9ffaf115d8800d5" 42e91cd]:
{{{
#!CommitTicketReference repository=""
revision="42e91cd6f4a5ea79ebacbc58a9ffaf115d8800d5"
Refs #28355 -- Forwardported 1.11.4 release note.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28355#comment:4>