summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-06-08 18:18:01 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-06-08 18:18:01 +0000
commitb0ebcfe15af4626f5ec54336800692130adae0c3 (patch)
treec693231ae2c471d3b287bc99bbb46bf537bc8787
parent31d9dc07aa6d8c424bc84821d529cf3356e04a71 (diff)
Fixed #7394: fixed bug with syncdb and createsuperuser introduced in [7590]. Thanks, av0000@mail.ru
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--AUTHORS1
-rw-r--r--django/contrib/auth/management/__init__.py2
-rw-r--r--django/contrib/auth/management/commands/createsuperuser.py3
3 files changed, 4 insertions, 2 deletions
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 <http://ascher.ca/>
Jökull Sólberg Auðunsson <jokullsolberg@gmail.com>
Arthur <avandorp@gmail.com>
+ av0000@mail.ru
David Avsajanishvili <avsd05@gmail.com>
axiak@mit.edu
Niran Babalola <niran@niran.org>
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: