From b5183e3d3d8fd7d82f9e298ec6df7cec941894f6 Mon Sep 17 00:00:00 2001 From: zediious Date: Fri, 22 Dec 2023 03:52:04 -0500 Subject: [PATCH] properly create new superuser --- raptorWeb/authprofiles/management/commands/createSuper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raptorWeb/authprofiles/management/commands/createSuper.py b/raptorWeb/authprofiles/management/commands/createSuper.py index e47cc7a5..c994a900 100644 --- a/raptorWeb/authprofiles/management/commands/createSuper.py +++ b/raptorWeb/authprofiles/management/commands/createSuper.py @@ -10,7 +10,7 @@ class Command(BaseCommand): def handle(self, *args, **options): if RaptorUser.objects.count() == 0: - default_admin = ADMINS[0] + default_admin = ADMINS[0][0] admin_info = UserProfileInfo.objects.create() admin_info.save() username = default_admin[0].replace(' ', '')