Commit b0ebcfe1 authored by Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss
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
parent 31d9dc07
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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)]:
+2 −1
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ class Command(BaseCommand):
                validators.isValidEmail(email, None)
            except validators.ValidationError:
                raise CommandError("Invalid email address.")

        password = ''

        # Try to determine the current system user's username to use as a default.