fixed #326 whitespace in allready used names

This commit is contained in:
Oskar Hahn 2012-10-24 11:35:07 +02:00
parent 348bbac7b6
commit 17afa3c5d1

View File

@ -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: