Commit d2ed4477 authored by Serge S. Koval's avatar Serge S. Koval

Update fields.py

Fixed #318.
parent 45e3df59
...@@ -32,7 +32,7 @@ class TimeField(fields.Field): ...@@ -32,7 +32,7 @@ class TimeField(fields.Field):
""" """
super(TimeField, self).__init__(label, validators, **kwargs) super(TimeField, self).__init__(label, validators, **kwargs)
self.format = formats or ('%H:%M:%S', '%H:%M', self.formats = formats or ('%H:%M:%S', '%H:%M',
'%I:%M:%S%p', '%I:%M%p', '%I:%M:%S%p', '%I:%M%p',
'%I:%M:%S %p', '%I:%M %p') '%I:%M:%S %p', '%I:%M %p')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment