'Create a serializer with an appropriate context and use it to serialize
the given comment, returning the result.'

def serialize(self, comment, thread_data=None):

    context = get_context(self.course, self.request, make_minimal_cs_thread(thread_data))
    return CommentSerializer(comment, context=context).data
