Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TimeField should be datetime.time not unicode

  • Loading branch information...
commit 61d34746b854aada8dc53e277d0654c9748f8ec6 1 parent a8e5360
@sorl sorl authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 mockups/generators.py
View
5 mockups/generators.py
@@ -359,13 +359,12 @@ def generate(self):
class TimeGenerator(Generator):
- coerce_type = unicode
-
def generate(self):
- return u'%02d:%02d:%02d' % (
+ return datetime.time(
random.randint(0,23),
random.randint(0,59),
random.randint(0,59),
+ random.randint(0, 999999),
)
Please sign in to comment.
Something went wrong with that request. Please try again.