Kaydet (Commit) a673ec80 authored tarafından James Bennett's avatar James Bennett

Fixed #17898: Ensure create_superuser honors the 'db' argument from…

Fixed #17898: Ensure create_superuser honors the 'db' argument from post_sync_db. Thanks to charettes for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst dad1f5c2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment