'Helper to update a course\'s grading policy in the modulestore.'

def _update_course_grading_policy(self, course, grading_policy):

    course.set_grading_policy(grading_policy)
    modulestore().update_item(course, self.user.id)
