Add email to import_users
This commit is contained in:
parent
c617957fc5
commit
66c08522f7
1 changed files with 1 additions and 1 deletions
|
@ -67,6 +67,6 @@ def import_users(csv_file):
|
||||||
if 'organization' in row.keys() and row['organization']:
|
if 'organization' in row.keys() and row['organization']:
|
||||||
org = Organization.objects.get(name=row['organization'])
|
org = Organization.objects.get(name=row['organization'])
|
||||||
profile.organizations.add(org)
|
profile.organizations.add(org)
|
||||||
|
user.email = row['email']
|
||||||
user.save()
|
user.save()
|
||||||
profile.save()
|
profile.save()
|
||||||
|
|
Loading…
Add table
Reference in a new issue