Skip to content

Commit

Permalink
properly create new superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
zediious committed Dec 22, 2023
1 parent ad8a4de commit b5183e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raptorWeb/authprofiles/management/commands/createSuper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ', '')
Expand Down

0 comments on commit b5183e3

Please sign in to comment.