Commit 59ddee7c authored by Jason D Yeomans's avatar Jason D Yeomans

Create student on first login

parent a4ba4b28
......@@ -9,5 +9,7 @@ def create_user(tree):
if user_created:
user.email = "%s@%s" % (username, settings.ORGANIZATION_EMAIL_DOMAIN)
user.save()
new_student = Student.objects.create()
new_student.user = user
print("Created user %s!" % username)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment