diff --git a/modernomad/core/management/commands/generate_test_data.py b/modernomad/core/management/commands/generate_test_data.py index f8ec1db6..88ed812e 100644 --- a/modernomad/core/management/commands/generate_test_data.py +++ b/modernomad/core/management/commands/generate_test_data.py @@ -17,8 +17,7 @@ class Command(BaseCommand): def handle(self, *args, **options): # setting the seed so output is consistent - fake = Faker() - fake.seed(1) + Faker.seed(1) # create a known super user. this user will also be set as a location admin for # all locations. diff --git a/requirements.txt b/requirements.txt index f09afe1b..1ae6e259 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,7 @@ django-uuidfield==0.5.0 django-webpack-loader==0.6.0 Django==1.11.23 djangorestframework==3.10.3 +Faker==4.1.0 freezegun==0.3.12 graphene-django==2.2.0 graphene==2.1.6