Skip to content

Commit

Permalink
Update faker.
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Sep 28, 2018
1 parent 1229257 commit 1f0ed30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mixer/backend/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ def make_fabric(self, field, fname=None, fake=False, kwargs=None): # noqa
stype = self.__factory.cls_to_simple(fcls)

if fcls is models.CommaSeparatedIntegerField:
return partial(faker.random_sample, range(0, 10), length=field.max_length)
return partial(
faker.random_sample, range(0, field.max_length), length=field.max_length)

if field and field.choices:
try:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Faker==0.8.8
Faker==0.9.1

0 comments on commit 1f0ed30

Please sign in to comment.