From 9daff7608d5540c0caf2133045d927d68422bce4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 8 Mar 2019 19:45:41 +0100 Subject: [PATCH] fix password not getting set on user import --- passbook/core/management/commands/import_users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passbook/core/management/commands/import_users.py b/passbook/core/management/commands/import_users.py index fc694ef96..c0b1a829b 100644 --- a/passbook/core/management/commands/import_users.py +++ b/passbook/core/management/commands/import_users.py @@ -37,7 +37,8 @@ class Command(BaseCommand): User.objects.create( username=user.get('username'), email=user.get('email'), - name=user.get('name')) + name=user.get('name'), + password=user.get('password')) LOGGER.debug('Created User %s', user.get('username')) except ValidationError as exc: LOGGER.warning('User %s caused %r, skipping', user.get('username'), exc)