Ticket #7394: syncdb_7596.diff

File syncdb_7596.diff, 1.3 KB (added by av0000@…, 7 years ago)

create_superuser 'password' bug

  • django/contrib/auth/management/commands/createsuperuser.py

     
    4242                validators.isValidEmail(email, None)
    4343            except validators.ValidationError:
    4444                raise CommandError("Invalid email address.")
    45             password = ''
     45               
     46        password = ''
    4647
    4748        # Try to determine the current system user's username to use as a default.
    4849        try:
  • django/contrib/auth/management/__init__.py

     
    4242                confirm = raw_input('Please enter either "yes" or "no": ')
    4343                continue
    4444            if confirm == 'yes':
    45                 call_command("createsuperuser")
     45                call_command("createsuperuser", interactive=True)
    4646            break
    4747
    4848if 'create_permissions' not in [i.__name__ for i in dispatcher.getAllReceivers(signal=signals.post_syncdb)]:
Back to Top