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): ...@@ -87,7 +87,8 @@ class Command(BaseCommand):
# Concrete5 uses bcrypt passwords, which django can rehash # Concrete5 uses bcrypt passwords, which django can rehash
user.password = 'bcrypt$' + member['password'] user.password = 'bcrypt$' + member['password']
user.first_name = member['first_name'] 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() user.save()
try: try:
user.member user.member
......
Supports Markdown
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