Add email to import_users

This commit is contained in:
Luong Doan 2021-06-07 07:00:53 +00:00
parent c617957fc5
commit 66c08522f7

View file

@ -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()