Commit 972015f8 by Xavier Antoviaque

Use anonymous user id from the runtime instead of real user id

parent f8c086d9
......@@ -105,8 +105,7 @@ class AnswerBlock(XBlock):
if not name:
raise ValueError, 'AnswerBlock.name field need to be set to a non-null/empty value'
# TODO Use anonymous_user_id
student_id = self.scope_ids.user_id
student_id = self.runtime.anonymous_student_id
answer_data, created = Answer.objects.get_or_create(
student_id=student_id,
......
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