Commit 4c5efa34 by bradmerlin Committed by GitHub

Merge pull request #157 from open-craft/bradmerlin/upgrade-mrq-student_view_data

[OC-2874] Added choices and tips to MRQ student_view_data
parents 3b500caf b0dac13e
......@@ -203,5 +203,13 @@ class MRQBlock(StudentViewUserStateMixin, QuestionnaireAbstractBlock):
'weight': self.weight,
'question': self.question,
'message': self.message,
'choices': [
{'value': choice['value'], 'content': choice['display_name']}
for choice in self.human_readable_choices
],
'hide_results': self.hide_results,
'tips': [
{'content': tip.content, 'for_choices': tip.values}
for tip in self.get_tips()
],
}
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