diff --git a/django/contrib/auth/management/__init__.py b/django/contrib/auth/management/__init__.py index 78a51cf443e..e7925977785 100644 --- a/django/contrib/auth/management/__init__.py +++ b/django/contrib/auth/management/__init__.py @@ -57,7 +57,7 @@ def create_permissions(app, created_models, verbosity, **kwargs): print "Adding permission '%s'" % obj -def create_superuser(app, created_models, verbosity, **kwargs): +def create_superuser(app, created_models, verbosity, db, **kwargs): from django.core.management import call_command if auth_app.User in created_models and kwargs.get('interactive', True): @@ -70,7 +70,7 @@ def create_superuser(app, created_models, verbosity, **kwargs): confirm = raw_input('Please enter either "yes" or "no": ') continue if confirm == 'yes': - call_command("createsuperuser", interactive=True) + call_command("createsuperuser", interactive=True, database=db) break