Unverified Commit 10b168d4 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Trim last names of spaces

This was a problem for people without an infix
parent 3910ae3f
......@@ -87,7 +87,8 @@ class Command(BaseCommand):
# Concrete5 uses bcrypt passwords, which django can rehash
user.password = 'bcrypt$' + member['password']
user.first_name = member['first_name']
user.last_name = ' '.join([member['infix'], member['surname']])
user.last_name = ' '.join([member['infix'],
member['surname']]).strip()
user.save()
try:
user.member
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment