Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
b21f37f1
Commit
b21f37f1
authored
Dec 18, 2013
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LMS fix: Allow workbench to use a default `anonymous_user_id`
`runtime.anonymous_user_id` is unsupported by the workbench
parent
d2577cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
mentoring/answer.py
+2
-1
No files found.
mentoring/answer.py
View file @
b21f37f1
...
...
@@ -113,7 +113,8 @@ class AnswerBlock(XBlock):
if
not
name
:
raise
ValueError
,
'AnswerBlock.name field need to be set to a non-null/empty value'
student_id
=
self
.
runtime
.
anonymous_student_id
# TODO-WORKBENCH-WORKAROUND: Remove use of getattr(), used to work on both LMS & workbench
student_id
=
getattr
(
self
.
runtime
,
'anonymous_student_id'
,
'student1'
)
answer_data
,
created
=
Answer
.
objects
.
get_or_create
(
student_id
=
student_id
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment