Browse files

TimeField should be datetime.time not unicode

  • Loading branch information...
1 parent a8e5360 commit 61d34746b854aada8dc53e277d0654c9748f8ec6 @sorl sorl committed Feb 7, 2011
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),
)

0 comments on commit 61d3474

Please sign in to comment.