diff --git a/lms/djangoapps/instructor/views.py b/lms/djangoapps/instructor/views.py index 9bae77e82b..52f28160dd 100644 --- a/lms/djangoapps/instructor/views.py +++ b/lms/djangoapps/instructor/views.py @@ -41,6 +41,7 @@ from xmodule.modulestore import Location from xmodule.modulestore.django import modulestore from xmodule.modulestore.exceptions import InvalidLocationError, ItemNotFoundError, NoPathToItem from xmodule.modulestore.search import path_to_location +import xmodule.graders as graders import track.views from .offline_gradecalc import student_grades, offline_grades_available @@ -1136,7 +1137,7 @@ def dump_grading_context(course): msg += '%s\n' % course.grader.__class__ graders = {} - if 'WeightedSubsectionsGrader' in str(course.grader.__class__): + if isinstance(course.grader, graders.WeightedSubsectionsGrader) msg += '\n' msg += "Graded sections:\n" for subgrader, category, weight in course.grader.sections: