We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4517552 commit bf7b87bCopy full SHA for bf7b87b
src/base/management/commands/initadmin.py
@@ -12,7 +12,7 @@ class Command(BaseCommand):
12
help = "Automatically creates a superuser"
13
14
def handle(self, *args, **kwargs):
15
- if not User.objects.filter(username="admin").exists():
+ if not User.objects.filter(username=ADMIN_USERNAME).exists():
16
User.objects.create_superuser(ADMIN_USERNAME, ADMIN_EMAIL, ADMIN_PASSWORD)
17
self.stdout.write(self.style.SUCCESS("Superuser created successfully"))
18
else:
0 commit comments