Commit 2bb180a3 by ichuang

Merge pull request #1935 from edx/fix/formularesponse_needs_samples

formularesponse requires the "samples" attribute
parents c765906f 60977b0e
...@@ -1783,7 +1783,7 @@ class FormulaResponse(LoncapaResponse): ...@@ -1783,7 +1783,7 @@ class FormulaResponse(LoncapaResponse):
response_tag = 'formularesponse' response_tag = 'formularesponse'
hint_tag = 'formulahint' hint_tag = 'formulahint'
allowed_inputfields = ['textline'] allowed_inputfields = ['textline']
required_attributes = ['answer'] required_attributes = ['answer', 'samples']
max_inputfields = 1 max_inputfields = 1
def setup_response(self): def setup_response(self):
......
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