update account properties,fix issue from main repo
This commit is contained in:
parent
36d47b9b88
commit
6796905957
@ -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)
|
||||
|
Reference in New Issue
Block a user