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
This commit is contained in:
parent
31d9dc07aa
commit
b0ebcfe15a
1
AUTHORS
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>
|
||||
|
|
|
@ -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)]:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue