Ticket #7394: syncdb_7596.diff
File syncdb_7596.diff, 1.3 KB (added by , 16 years ago) |
---|
-
django/contrib/auth/management/commands/createsuperuser.py
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: -
django/contrib/auth/management/__init__.py
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)]: