Commit 821e2d06 by David Ormsbee

Merge pull request #1466 from MITx/feature/ichuang/fix-idashboard-error-message

Fix error message provided by Instructor dashboard datadump - make it more useful
parents 94a28f60 ad0d304e
......@@ -413,7 +413,7 @@ def instructor_dashboard(request, course_id):
smdat = StudentModule.objects.filter(course_id=course_id,
module_state_key=module_state_key)
smdat = smdat.order_by('student')
msg+="Found module to reset. "
msg += "Found %d records to dump " % len(smdat)
except Exception as err:
msg+="<font color='red'>Couldn't find module with that urlname. </font>"
msg += "<pre>%s</pre>" % escape(err)
......
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