Skip to content

Commit f44faf4

Browse files
Updated default superuser creation
- Updated user name to include last name - Clarified system message when user is not created
1 parent b8435bb commit f44faf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/management/commands/initadmin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Command(BaseCommand):
88

99
def handle(self, *args, **options):
1010
if User.objects.count() == 0:
11-
admin = User.objects.create_superuser(username='contestadmin', email='contest@fsu.acm.org', password='seminoles1!', first_name='Administrator')
11+
admin = User.objects.create_superuser(username='contestadmin', email='contest@fsu.acm.org', password='seminoles1!', first_name='Contest Admin', last_name='Team')
1212
admin.save()
1313
else:
14-
print('Admin accounts can only be initialized if no Accounts exist')
14+
print('Skipping default superuser account creation. The account already exists.')

0 commit comments

Comments
 (0)