diff --git a/lms/djangoapps/course_home_api/progress/serializers.py b/lms/djangoapps/course_home_api/progress/serializers.py index 190cd76bf9b5..6bdc204434af 100644 --- a/lms/djangoapps/course_home_api/progress/serializers.py +++ b/lms/djangoapps/course_home_api/progress/serializers.py @@ -145,3 +145,4 @@ class ProgressTabSerializer(VerifiedModeSerializer): username = serializers.CharField() user_has_passing_grade = serializers.BooleanField() verification_data = VerificationDataSerializer() + disable_progress_graph = serializers.BooleanField() diff --git a/lms/djangoapps/course_home_api/progress/views.py b/lms/djangoapps/course_home_api/progress/views.py index 8c21335dcacf..3783c19061dc 100644 --- a/lms/djangoapps/course_home_api/progress/views.py +++ b/lms/djangoapps/course_home_api/progress/views.py @@ -230,6 +230,7 @@ def get(self, request, *args, **kwargs): block = modulestore().get_course(course_key) grading_policy = block.grading_policy + disable_progress_graph = block.disable_progress_graph verification_status = IDVerificationService.user_status(student) verification_link = None if verification_status['status'] is None or verification_status['status'] == 'expired': @@ -259,6 +260,7 @@ def get(self, request, *args, **kwargs): 'username': username, 'user_has_passing_grade': user_has_passing_grade, 'verification_data': verification_data, + 'disable_progress_graph': disable_progress_graph, } context = self.get_serializer_context() context['staff_access'] = is_staff