fix password not getting set on user import
This commit is contained in:
parent
0a4af80b9b
commit
9daff7608d
|
@ -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)
|
||||||
|
|
Reference in New Issue