fixed #326 whitespace in allready used names
This commit is contained in:
parent
348bbac7b6
commit
17afa3c5d1
@ -47,7 +47,7 @@ def gen_username(first_name, last_name):
|
||||
i = 0
|
||||
while True:
|
||||
i += 1
|
||||
testname = "%s%s%s" % (first_name, last_name, i)
|
||||
testname = "%s %s %s" % (first_name, last_name, i)
|
||||
try:
|
||||
User.objects.get(username=testname)
|
||||
except User.DoesNotExist:
|
||||
|
Loading…
Reference in New Issue
Block a user