From 67969059570969d99ec60a207285e725e4797cf8 Mon Sep 17 00:00:00 2001 From: Kurach Alexander Date: Mon, 21 Mar 2022 16:19:41 +0300 Subject: [PATCH] update account properties,fix issue from main repo --- startup_scripts/000_users.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/startup_scripts/000_users.py b/startup_scripts/000_users.py index 1435d81..ef68da8 100644 --- a/startup_scripts/000_users.py +++ b/startup_scripts/000_users.py @@ -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)