Skip to content

Commit

Permalink
we are already being passed in the module descriptor so we don't need…
Browse files Browse the repository at this point in the history
… to re-fetch it (and children)
  • Loading branch information
Chris Dodge committed Nov 7, 2013
1 parent bd5abc8 commit a93a848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/grades.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a93a848

Please sign in to comment.