update account properties,fix issue from main repo

This commit is contained in:
Kurach Alexander 2022-03-21 16:19:41 +03:00 committed by GitHub
parent 36d47b9b88
commit 6796905957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,12 @@ for username, user_details in users.items():
user = User.objects.create_user(
username=username,
password=user_details.get("password", 0) or User.objects.make_random_password(),
first_name=user_details.get("first_name", "no-name"),
last_name=user_details.get("last_name", "no-lastname"),
email=user_details.get("email", "none"),
is_staff=user_details.get("is_staff", False),
is_active=user_details.get("is_active", False),
is_superuser=user_details.get("is_superuser", False),
)
print("👤 Created user", username)