Commit c770f6e7 by Usman Khalid

Merge pull request #4556 from edx/usman/lms11146-download-csv-of-responses

In legacy dashboard changed make_usage_key() to make_usage_key_from_deprecated_string()
parents 252038c3 e0d6ee70
...@@ -663,7 +663,7 @@ def instructor_dashboard(request, course_id): ...@@ -663,7 +663,7 @@ def instructor_dashboard(request, course_id):
if problem_to_dump[-4:] == ".xml": if problem_to_dump[-4:] == ".xml":
problem_to_dump = problem_to_dump[:-4] problem_to_dump = problem_to_dump[:-4]
try: try:
module_state_key = course_key.make_usage_key(block_type='problem', name=problem_to_dump) module_state_key = course_key.make_usage_key_from_deprecated_string(problem_to_dump)
smdat = StudentModule.objects.filter( smdat = StudentModule.objects.filter(
course_id=course_key, course_id=course_key,
module_state_key=module_state_key module_state_key=module_state_key
......
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