changed default values
changed default values to First and Last name and is_active field
This commit is contained in:
parent
6796905957
commit
3cf34cae73
1 changed files with 3 additions and 3 deletions
|
@ -13,11 +13,11 @@ 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"),
|
first_name=user_details.get("first_name", ""),
|
||||||
last_name=user_details.get("last_name", "no-lastname"),
|
last_name=user_details.get("last_name", ""),
|
||||||
email=user_details.get("email", "none"),
|
email=user_details.get("email", "none"),
|
||||||
is_staff=user_details.get("is_staff", False),
|
is_staff=user_details.get("is_staff", False),
|
||||||
is_active=user_details.get("is_active", False),
|
is_active=user_details.get("is_active", True),
|
||||||
is_superuser=user_details.get("is_superuser", False),
|
is_superuser=user_details.get("is_superuser", False),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue