Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit b0ebcfe15af4626f5ec54336800692130adae0c3 1 parent 31d9dc0
@jacobian jacobian authored
View
1  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>
View
2  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)]:
View
3  django/contrib/auth/management/commands/createsuperuser.py
@@ -42,7 +42,8 @@ def handle(self, *args, **options):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.