Fix create admin command
@@ -6,5 +6,5 @@ User = get_user_model()
class Command(BaseCommand):
def handle(self, *args, **options):
- if not User.objects.filter(username="admin").exists():
+ if not User.objects.filter(email="admin").exists():
User.objects.create_superuser("admin@admin.com", "change-on-deploy")
