Fixed motion csv import error.
This commit is contained in:
parent
145a52eb24
commit
aa0abec970
@ -615,16 +615,13 @@ def motion_import(request):
|
||||
user.last_name = last_name
|
||||
user.first_name = first_name
|
||||
user.username = gen_username(first_name, last_name)
|
||||
user.detail = ''
|
||||
user.committee = ''
|
||||
user.gender = ''
|
||||
user.type = ''
|
||||
user.firstpassword = gen_password()
|
||||
user.save()
|
||||
profile = Profile()
|
||||
profile.user = user
|
||||
profile.group = ''
|
||||
profile.committee = ''
|
||||
profile.gender = 'none'
|
||||
profile.type = 'guest'
|
||||
profile.firstpassword = gen_password()
|
||||
profile.user.set_password(profile.firstpassword)
|
||||
profile.save()
|
||||
user.reset_password()
|
||||
users_generated += 1
|
||||
# create / modify the motion
|
||||
motion = None
|
||||
|
Loading…
Reference in New Issue
Block a user