Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…valid usernames. Thanks for reporting, jmu

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2170110df90409a4299f833a84a1a47a9f505e16 1 parent 6b4eb8b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/auth/create_superuser.py
View
1  django/contrib/auth/create_superuser.py
@@ -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
try:
User.objects.get(username=username)
except User.DoesNotExist:
Please sign in to comment.
Something went wrong with that request. Please try again.