Unverified Commit ee24855b authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Truncate nicknames and last names to 30 characters

parent 10b168d4
......@@ -88,7 +88,7 @@ class Command(BaseCommand):
user.password = 'bcrypt$' + member['password']
user.first_name = member['first_name']
user.last_name = ' '.join([member['infix'],
member['surname']]).strip()
member['surname']]).strip()[:30]
user.save()
try:
user.member
......@@ -131,7 +131,7 @@ class Command(BaseCommand):
if member['about']:
user.member.profile_description = member['about']
if member['nickname']:
user.member.nickname = member['nickname']
user.member.nickname = member['nickname'][:30]
if member['initials']:
user.member.initials = member['initials']
user.member.display_name_preference = {
......
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