Skip to content

Commit

Permalink
TimeField should be datetime.time not unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
sorl committed Feb 6, 2011
1 parent a8e5360 commit 61d3474
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mockups/generators.py
Expand Up @@ -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),
)


Expand Down

0 comments on commit 61d3474

Please sign in to comment.