'Return the serializer instance that should be used for validating and
deserializing input, and for serializing output.'

def get_serializer(self, *args, **kwargs):

    serializer_class = self.get_serializer_class()
    kwargs[u'context'] = self.get_serializer_context()
    return serializer_class(*args, **kwargs)
