Fixed participant CSV import.
This commit is contained in:
parent
f62b7f299b
commit
85771c4af6
@ -71,7 +71,7 @@ def import_users(csv_file):
|
|||||||
dialect=dialect)):
|
dialect=dialect)):
|
||||||
if line_no:
|
if line_no:
|
||||||
try:
|
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:
|
except ValueError:
|
||||||
error_messages.append(_('Ignoring malformed line %d in import file.') % line_no + 1)
|
error_messages.append(_('Ignoring malformed line %d in import file.') % line_no + 1)
|
||||||
continue
|
continue
|
||||||
@ -80,7 +80,7 @@ def import_users(csv_file):
|
|||||||
user.first_name = first_name
|
user.first_name = first_name
|
||||||
user.username = gen_username(first_name, last_name)
|
user.username = gen_username(first_name, last_name)
|
||||||
user.gender = gender
|
user.gender = gender
|
||||||
user.category = category
|
user.detail = detail
|
||||||
user.type = type
|
user.type = type
|
||||||
user.committee = committee
|
user.committee = committee
|
||||||
user.comment = comment
|
user.comment = comment
|
||||||
|
Loading…
Reference in New Issue
Block a user