Commit a93a848e by Chris Dodge

we are already being passed in the module descriptor so we don't need to re-fetch it (and children)

parent bd5abc89
......@@ -283,7 +283,7 @@ def progress_summary(student, request, course, field_data_cache):
# TODO: We need the request to pass into here. If we could forego that, our arguments
# would be simpler
course_module = get_module(student, request, course.location, field_data_cache, course.id, depth=None)
course_module = get_module_for_descriptor(student, request, course, field_data_cache, course.id)
if not course_module:
# This student must not have access to the course.
return None
......
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