small fixes

This commit is contained in:
Sam
2021-02-04 11:10:47 +00:00
parent 1c55f7da98
commit 12c0ddcbe8
3 changed files with 25 additions and 3 deletions

View File

@@ -127,9 +127,9 @@ def load_coop_managers(request):
logging.info(f"Created Coop: {coop_data}")
coop_counter += 1
coop_user = User.objects.create_user(email=row['email'], company=coop, role='COOP_MANAGER')
logging.info(f"Created User: {coop_user}")
coop_user = User.objects.create_user(email=row['email'], company=coop, role='COOP_MANAGER', is_active=False)
# TODO: send confirmation email
logging.info(f"Created User: {coop_user}")
user_counter += 1
except Exception as e:
logging.error(f"Could not parse {row}")