I was refering to line 187 (and maybe 184 as well):
170 class TimeField(Field):
171 def __init__(self, input_formats=None, *args, **kwargs):
172 super(TimeField, self).__init__(*args, **kwargs)
173 self.input_formats = input_formats or
DEFAULT_TIME_INPUT_FORMAT
This could be a configuration error on my end, but it seems to me to
be a bug (or feature request).
using newforms:
class MyForm(forms.Form):
time = forms.TimeField(input_formats=('%H:%M',))
I want just an hour:minute field. The input works fine, but the output
always outputs %H:%M:%S because
2 matches
Mail list logo