fix password not getting set on user import

This commit is contained in:
Jens Langhammer 2019-03-08 19:45:41 +01:00
parent 0a4af80b9b
commit 9daff7608d
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ class Command(BaseCommand):
User.objects.create( User.objects.create(
username=user.get('username'), username=user.get('username'),
email=user.get('email'), email=user.get('email'),
name=user.get('name')) name=user.get('name'),
password=user.get('password'))
LOGGER.debug('Created User %s', user.get('username')) LOGGER.debug('Created User %s', user.get('username'))
except ValidationError as exc: except ValidationError as exc:
LOGGER.warning('User %s caused %r, skipping', user.get('username'), exc) LOGGER.warning('User %s caused %r, skipping', user.get('username'), exc)