Browse files

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

…ost_sync_db. Thanks to charettes for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent dad1f5c commit a673ec80e21447b9833c744293cd5c60bfcce2ff @ubernostrum ubernostrum committed Mar 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/auth/management/
@@ -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 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": ')
if confirm == 'yes':
- call_command("createsuperuser", interactive=True)
+ call_command("createsuperuser", interactive=True, database=db)

0 comments on commit a673ec8

Please sign in to comment.