'Look for serializer class in self.serializer_classes. It will be looked
up using request.GET.serializer, i.e.:
class MyViewSet(ViewSet):
serializer_class = MySerializer
serializer_classes = {
\'mini\': MyMiniSerializer,
If there\'s no entry for that param then just fallback to the regular
get_serializer_class lookup: self.serializer_class.'

def get_serializer_class(self):

    try:
        return self.serializer_classes[self.request.GET.get('serializer')]
    except KeyError:
        return super(MultiSerializerViewSetMixin, self).get_serializer_class()
