Commit 44ac6dff authored by Jason D Yeomans's avatar Jason D Yeomans

create student in callback

parent b7f08891
......@@ -9,7 +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
new_student = Student.objects.create(user=user)
new_student.save()
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