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

create student in callback

parent b7f08891
......@@ -9,7 +9,7 @@ def create_user(tree):
if user_created: = "%s@%s" % (username, settings.ORGANIZATION_EMAIL_DOMAIN)
new_student = Student.objects.create()
new_student.user = user
new_student = Student.objects.create(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