From c20f75dce923124833402fefc9c8380cdcc2194a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 29 Feb 2024 18:25:59 +0100 Subject: [PATCH] revert commit --- idhub/management/commands/initial_datas.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idhub/management/commands/initial_datas.py b/idhub/management/commands/initial_datas.py index 692564e..e8abf19 100644 --- a/idhub/management/commands/initial_datas.py +++ b/idhub/management/commands/initial_datas.py @@ -25,10 +25,10 @@ class Command(BaseCommand): ADMIN_PASSWORD = config('ADMIN_PASSWORD', '1234') self.create_admin_users(ADMIN_EMAIL, ADMIN_PASSWORD) - # if settings.CREATE_TEST_USERS: - for u in range(1, 6): - user = 'user{}@example.org'.format(u) - self.create_users(user, '1234') + if settings.CREATE_TEST_USERS: + for u in range(1, 6): + user = 'user{}@example.org'.format(u) + self.create_users(user, '1234') BASE_DIR = Path(__file__).resolve().parent.parent.parent.parent ORGANIZATION = os.path.join(BASE_DIR, settings.ORG_FILE)