From 85771c4af63671c1048b3d5fb0eb5d43941ff3db Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 30 Oct 2012 22:05:03 +0100 Subject: [PATCH] Fixed participant CSV import. --- openslides/participant/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/participant/api.py b/openslides/participant/api.py index 3e5856391..9454cae67 100644 --- a/openslides/participant/api.py +++ b/openslides/participant/api.py @@ -71,7 +71,7 @@ def import_users(csv_file): dialect=dialect)): if line_no: try: - (first_name, last_name, gender, category, type, committee, comment) = line[:7] + (first_name, last_name, gender, detail, type, committee, comment) = line[:7] except ValueError: error_messages.append(_('Ignoring malformed line %d in import file.') % line_no + 1) continue @@ -80,7 +80,7 @@ def import_users(csv_file): user.first_name = first_name user.username = gen_username(first_name, last_name) user.gender = gender - user.category = category + user.detail = detail user.type = type user.committee = committee user.comment = comment