'For now saves the course key in the deprecated form'

def to_mongo(self, course_key):

    assert isinstance(course_key, (NoneType, CourseKey))
    if course_key:
        return course_key.to_deprecated_string()
    else:
        return None
