feat(testing): set password for user imported with raw password
This commit is contained in:
parent
9ddaf8f309
commit
c1bf8135c3
|
@ -316,6 +316,8 @@ class Command(BaseCommand):
|
|||
}
|
||||
user, created = User.objects.get_or_create(**kwargs)
|
||||
if created:
|
||||
user.set_password(defaults["password"])
|
||||
user.save()
|
||||
self.info(self.style.SUCCESS("CREATED"))
|
||||
else:
|
||||
modified = False
|
||||
|
|
Loading…
Reference in New Issue