Commit b0dac13e by Brad Melin

added choices and tips to mrq student_view_data

parent 3b500caf
...@@ -203,5 +203,13 @@ class MRQBlock(StudentViewUserStateMixin, QuestionnaireAbstractBlock): ...@@ -203,5 +203,13 @@ class MRQBlock(StudentViewUserStateMixin, QuestionnaireAbstractBlock):
'weight': self.weight, 'weight': self.weight,
'question': self.question, 'question': self.question,
'message': self.message, 'message': self.message,
'choices': [
{'value': choice['value'], 'content': choice['display_name']}
for choice in self.human_readable_choices
],
'hide_results': self.hide_results, '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