'The JSON object can have the keys GRADER and GRADE_CUTOFFS. If either is
missing, it reverts to the default.'

def set_grading_policy(self, course_policy):

    if (course_policy is None):
        course_policy = {}
    grading_policy = self.grading_policy
    if ('GRADER' not in grading_policy):
        grading_policy['GRADER'] = CourseFields.grading_policy.default['GRADER']
    if ('GRADE_CUTOFFS' not in grading_policy):
        grading_policy['GRADE_CUTOFFS'] = CourseFields.grading_policy.default['GRADE_CUTOFFS']
    grading_policy.update(course_policy)
    self.raw_grader = grading_policy['GRADER']
    self.grade_cutoffs = grading_policy['GRADE_CUTOFFS']
