From aa0abec970d52802686b3c6c1c4a819d588fcf1e Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 30 Oct 2012 22:30:32 +0100 Subject: [PATCH] Fixed motion csv import error. --- openslides/motion/views.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/openslides/motion/views.py b/openslides/motion/views.py index 78873ba92..ce28780ce 100644 --- a/openslides/motion/views.py +++ b/openslides/motion/views.py @@ -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