update account properties,fix issue from main repo
This commit is contained in:
parent
36d47b9b88
commit
6796905957
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ for username, user_details in users.items():
|
||||||
user = User.objects.create_user(
|
user = User.objects.create_user(
|
||||||
username=username,
|
username=username,
|
||||||
password=user_details.get("password", 0) or User.objects.make_random_password(),
|
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)
|
print("👤 Created user", username)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue