diff --git a/lms/djangoapps/course_home_api/progress/v1/serializers.py b/lms/djangoapps/course_home_api/progress/v1/serializers.py index 18f2f615af9e0640835cdb2a405358bbb422005a..9e6e7d258c334e0078c4a6695aae8619021087d6 100644 --- a/lms/djangoapps/course_home_api/progress/v1/serializers.py +++ b/lms/djangoapps/course_home_api/progress/v1/serializers.py @@ -54,6 +54,7 @@ class GradingPolicySerializer(serializers.Serializer): def get_assignment_policies(self, grading_policy): return [{ 'num_droppable': assignment_policy['drop_count'], + 'short_label': assignment_policy.get('short_label', ''), 'type': assignment_policy['type'], 'weight': assignment_policy['weight'], } for assignment_policy in grading_policy['GRADER']] diff --git a/lms/djangoapps/course_home_api/progress/v1/views.py b/lms/djangoapps/course_home_api/progress/v1/views.py index 5429acef2589b905f4605229eb8121dd1b70e44d..5aa7934512030403fb91838feaecb281ec5c8f0d 100644 --- a/lms/djangoapps/course_home_api/progress/v1/views.py +++ b/lms/djangoapps/course_home_api/progress/v1/views.py @@ -68,7 +68,8 @@ class ProgressTabView(RetrieveAPIView): enrollment_mode: (str) a str representing the enrollment the user has ('audit', 'verified', ...) grading_policy: assignment_policies: List of serialized assignment grading policy objects, each has the following fields: - num_droppable: (int) the number of assignments able to be dropped + num_droppable: (int) the number of lowest scored assignments that will not be counted towards the final grade + short_label: (str) the abbreviated name given to the assignment type type: (str) the assignment type weight: (float) the percent weight the given assigment type has on the overall grade grade_range: an object containing the grade range cutoffs. The exact keys in the object can vary, but they