Commit 8f6189a3 by Will Daly

Merge pull request #345 from edx/will/new-style-locations-in-course-debug-info

Show new-style locations in course staff debug info (opaque keys update)
parents 13d2e3ef 24df7773
......@@ -37,7 +37,11 @@ class StaffInfoMixin(object):
status_counts, num_submissions = self.get_workflow_status_counts()
context['status_counts'] = status_counts
context['num_submissions'] = num_submissions
context['item_id'] = student_item["item_id"]
# We need to display the new-style locations in the course staff
# info, even if we're using old-style locations internally,
# so course staff can use the locations to delete student state.
context['item_id'] = unicode(self.scope_ids.usage_id)
# Include release/due dates for each step in the problem
context['step_dates'] = list()
......@@ -127,4 +131,4 @@ class StaffInfoMixin(object):
criterion["total_value"] = max_scores[criterion["name"]]
path = 'openassessmentblock/staff_debug/student_info.html'
return path, context
\ No newline at end of file
return path, context
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