'Create or update the grade cutoffs for the given course. Returns sent in cutoffs (ie., no extra
db fetch).'

@staticmethod
def update_cutoffs_from_json(course_key, cutoffs, user):

    descriptor = modulestore().get_course(course_key)
    descriptor.grade_cutoffs = cutoffs
    modulestore().update_item(descriptor, user.id)
    _grading_event_and_signal(course_key, user.id)
    return cutoffs
