'Uses the CourseTeamSerializer to create a serialized course_team object.
Adds in additional text and pk fields.
Removes membership relation.
Returns serialized object with additional search fields.'

def data(self):

    context = {'request': get_request_or_stub()}
    serialized_course_team = CourseTeamSerializer(self.course_team, context=context).data
    serialized_course_team['pk'] = self.course_team.pk
    serialized_course_team.pop('membership', None)
    serialized_course_team['content'] = {'text': self.content_text()}
    return serialized_course_team
