From 77cff1e8cb5170f1607013b2fe8a12b509400a97 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 19 May 2020 15:43:51 -0700 Subject: [PATCH] Pin faker version Including breaking change https://faker.readthedocs.io/en/master/fakerclass.html#breaking-change --- modernomad/core/management/commands/generate_test_data.py | 3 +-- requirements.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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