Commit 929c8fa8 by Will Daly

Reword Studio warning message

parent 74af9d4a
......@@ -30,7 +30,7 @@ class SubmissionMixin(object):
'EBADFORM': _(u'API Submission Request Error.'),
'EUNKNOWN': _(u'API returned unclassified exception.'),
'ENOMULTI': _(u'Multiple submissions are not allowed.'),
'ENOPREVIEW': _(u'You cannot make a submission while in Preview mode.'),
'ENOPREVIEW': _(u'To submit a response, view this component in Preview or Live mode.'),
}
@XBlock.json_handler
......
......@@ -53,4 +53,4 @@ class SubmissionTest(XBlockHandlerTestCase):
resp = self.request(xblock, 'submit', self.SUBMISSION, response_format='json')
self.assertFalse(resp[0])
self.assertEqual(resp[1], "ENOPREVIEW")
self.assertEqual(resp[2], "You cannot make a submission while in Preview mode.")
\ No newline at end of file
self.assertEqual(resp[2], "To submit a response, view this component in Preview or Live mode.")
\ No newline at end of file
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