Commit 27e2f4ba by Matjaz Gregoric Committed by GitHub

Merge pull request #147 from open-craft/mtyaka/pb-answer-name-data

Add 'name' attribute to AnswerBlock's student_view_data.
parents a7c82214 cce5fce7
...@@ -266,7 +266,10 @@ class AnswerBlock(SubmittingXBlockMixin, AnswerMixin, QuestionMixin, StudioEdita ...@@ -266,7 +266,10 @@ class AnswerBlock(SubmittingXBlockMixin, AnswerMixin, QuestionMixin, StudioEdita
Returns a JSON representation of the student_view of this XBlock, Returns a JSON representation of the student_view of this XBlock,
retrievable from the Course Block API. retrievable from the Course Block API.
""" """
return {'question': self.question} return {
'question': self.question,
'name': self.name,
}
@XBlock.needs("i18n") @XBlock.needs("i18n")
......
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