Permalink
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...
1 parent 6b4eb8b commit 2170110df90409a4299f833a84a1a47a9f505e16 @adrianholovaty adrianholovaty committed Sep 26, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 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:

0 comments on commit 2170110

Please sign in to comment.