Skip to content
Browse files

Fixed #2704 -- Fixed error in create_superuser. It was failing for in…

…valid usernames. Thanks for reporting, jmu

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6b4eb8b commit 2170110df90409a4299f833a84a1a47a9f505e16 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/auth/
1  django/contrib/auth/
@@ -46,6 +46,7 @@ def createsuperuser(username=None, email=None, password=None):
if not username.isalnum():
sys.stderr.write("Error: That username is invalid. Use only letters, digits and underscores.\n")
username = None
+ continue
except User.DoesNotExist:

0 comments on commit 2170110

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