diff --git a/AUTHORS b/AUTHORS index 60175e8852..bb77b68ad5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -57,6 +57,7 @@ answer newbie questions, and generally made Django that much better: David Ascher Jökull Sólberg Auðunsson Arthur + av0000@mail.ru David Avsajanishvili axiak@mit.edu Niran Babalola diff --git a/django/contrib/auth/management/__init__.py b/django/contrib/auth/management/__init__.py index 5f9908be5f..8394bee5cd 100644 --- a/django/contrib/auth/management/__init__.py +++ b/django/contrib/auth/management/__init__.py @@ -42,7 +42,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") + call_command("createsuperuser", interactive=True) break if 'create_permissions' not in [i.__name__ for i in dispatcher.getAllReceivers(signal=signals.post_syncdb)]: diff --git a/django/contrib/auth/management/commands/createsuperuser.py b/django/contrib/auth/management/commands/createsuperuser.py index ab6bd78d18..4299762c74 100644 --- a/django/contrib/auth/management/commands/createsuperuser.py +++ b/django/contrib/auth/management/commands/createsuperuser.py @@ -42,7 +42,8 @@ class Command(BaseCommand): validators.isValidEmail(email, None) except validators.ValidationError: raise CommandError("Invalid email address.") - password = '' + + password = '' # Try to determine the current system user's username to use as a default. try: