def get_pagination_serializer(self, page):
        class SerializerClass(self.pagination_serializer_class):
            class Meta:
                object_serializer_class = AnswerSerializer

        context = self.get_serializer_context()
        return SerializerClass(instance=page, context=context)
Convenience method to map handler class to application.
dataset/ETHPy150Open mozilla/kitsune/kitsune/questions/api.py/AnswerViewSet.get_pagination_serializer--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/webapp/mail_handlers.py/InboundMailHandler.mapping