def serialize_milestone_with_course(course_milestone):
    """
    CourseMilestone serialization (composite object)
    """
    return {'id': course_milestone.milestone.id, 'name': course_milestone.
        milestone.name, 'display_name': course_milestone.milestone.
        display_name, 'namespace': course_milestone.milestone.namespace,
        'description': course_milestone.milestone.description, 'course_id':
        course_milestone.course_id}
