'Create course modes for a course.'

def create(self, validated_data):

    course = Course(validated_data['id'], self._new_course_mode_models(validated_data['modes']), verification_deadline=validated_data['verification_deadline'])
    course.save()
    return course
