Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored June 08, 2008
1  AUTHORS
@@ -57,6 +57,7 @@ answer newbie questions, and generally made Django that much better:
57 57
     David Ascher <http://ascher.ca/>
58 58
     Jökull Sólberg Auðunsson <jokullsolberg@gmail.com>
59 59
     Arthur <avandorp@gmail.com>
  60
+    av0000@mail.ru
60 61
     David Avsajanishvili <avsd05@gmail.com>
61 62
     axiak@mit.edu
62 63
     Niran Babalola <niran@niran.org>
2  django/contrib/auth/management/__init__.py
@@ -42,7 +42,7 @@ def create_superuser(app, created_models, verbosity, **kwargs):
42 42
                 confirm = raw_input('Please enter either "yes" or "no": ')
43 43
                 continue
44 44
             if confirm == 'yes':
45  
-                call_command("createsuperuser")
  45
+                call_command("createsuperuser", interactive=True)
46 46
             break
47 47
 
48 48
 if 'create_permissions' not in [i.__name__ for i in dispatcher.getAllReceivers(signal=signals.post_syncdb)]:
3  django/contrib/auth/management/commands/createsuperuser.py
@@ -42,7 +42,8 @@ def handle(self, *args, **options):
42 42
                 validators.isValidEmail(email, None)
43 43
             except validators.ValidationError:
44 44
                 raise CommandError("Invalid email address.")
45  
-            password = ''
  45
+
  46
+        password = ''
46 47
 
47 48
         # Try to determine the current system user's username to use as a default.
48 49
         try:

0 notes on commit b0ebcfe

Please sign in to comment.
Something went wrong with that request. Please try again.