Browse Source

Misago's createsuperuser

Rafał Pitoń 11 years ago
parent
commit
370b85e273
1 changed files with 4 additions and 3 deletions
  1. 4 3
      misago/users/management/commands/createsuperuser.py

+ 4 - 3
misago/users/management/commands/createsuperuser.py

@@ -13,6 +13,7 @@ from django.utils.six.moves import input
 from misago.users.validators import (validate_email, validate_username,
 from misago.users.validators import (validate_email, validate_username,
                                      validate_password)
                                      validate_password)
 
 
+
 class NotRunningInTTYException(Exception):
 class NotRunningInTTYException(Exception):
     pass
     pass
 
 
@@ -32,9 +33,9 @@ class Command(BaseCommand):
                 help='Specifies the username for the superuser.'),
                 help='Specifies the username for the superuser.'),
             make_option('--noinput', action='store_false', dest='interactive', default=True,
             make_option('--noinput', action='store_false', dest='interactive', default=True,
                 help=('Tells Miago to NOT prompt the user for input of any kind. '
                 help=('Tells Miago to NOT prompt the user for input of any kind. '
-                    'You must use --username with --noinput, along with an option for '
-                    'any other required field. Superusers created with --noinput will '
-                    ' not be able to log in until they\'re given a valid password.')),
+                      'You must use --username with --noinput, along with an option for '
+                      'any other required field. Superusers created with --noinput will '
+                      ' not be able to log in until they\'re given a valid password.')),
             make_option('--database', action='store', dest='database',
             make_option('--database', action='store', dest='database',
                 default=DEFAULT_DB_ALIAS, help='Specifies the database to use. Default is "default".'),
                 default=DEFAULT_DB_ALIAS, help='Specifies the database to use. Default is "default".'),
         )
         )