Fix superuser creation - add required username field

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-07-12 05:14:22 +05:30
parent 9aa144faf8
commit 5750675a9c

View File

@ -14,6 +14,7 @@ class Command(BaseCommand):
# Create superuser if it doesn't exist # Create superuser if it doesn't exist
if not User.objects.filter(is_superuser=True).exists(): if not User.objects.filter(is_superuser=True).exists():
User.objects.create_superuser( User.objects.create_superuser(
username='admin',
email='admin@netcop.ai', email='admin@netcop.ai',
password='admin123', password='admin123',
first_name='Admin', first_name='Admin',