From 85bddf687250bda0acce7e33911b3724022dbce6 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Tue, 10 Jul 2012 02:50:42 +0200 Subject: [PATCH] use "forname lastname" as default username, with a space --- openslides/participant/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/participant/api.py b/openslides/participant/api.py index 2f94eb8fe..3dde39c14 100644 --- a/openslides/participant/api.py +++ b/openslides/participant/api.py @@ -31,7 +31,7 @@ def gen_username(first_name, last_name): """ generates the username for new users. """ - testname = "%s%s" % (first_name, last_name) + testname = "%s %s" % (first_name.strip(), last_name.strip()) try: User.objects.get(username=testname) except User.DoesNotExist: