  
      def get_pagination_serializer(self, page=None):
          serializer_class = self.pagination_serializer_class
          context = self.get_serializer_context()
          ret = serializer_class(instance=page, context=context)
          ret.fields['results'] = self.get_serializer(kwargs={'source': 'object_list'})
          return ret
  
  
  class MultipleObjectBaseView(MultipleObjectMixin, BaseView):
      """
      Base class for generic views onto a queryset.
 
</s> remove     pass
 </s> add     pagination_serializer_class = api_settings.PAGINATION_SERIALIZER
    paginate_by = api_settings.PAGINATE_BY

    def get_pagination_serializer_class(self):
        """
        Return the class to use for the pagination serializer.
        """
        class SerializerClass(self.pagination_serializer_class):
            class Meta:
                object_serializer_class = self.get_serializer_class()

        return SerializerClass

    def get_pagination_serializer(self, page=None):
        pagination_serializer_class = self.get_pagination_serializer_class()
        context = self.get_serializer_context()
        return pagination_serializer_class(instance=page, context=context) </s> remove     def get_pagination_serializer(self, page=None):
        serializer_class = self.pagination_serializer_class
 </s> add     def get_serializer(self, data=None, files=None, instance=None):
        # TODO: add support for files
        # TODO: add support for seperate serializer/deserializer
        serializer_class = self.get_serializer_class() </s> remove         context = self.get_serializer_context()
        return serializer_class(data, instance=instance, context=context, **kwargs)
 </s> add         return serializer_class </s> remove     pagination_serializer_class = api_settings.PAGINATION_SERIALIZER
    paginate_by = api_settings.PAGINATE_BY
 </s> add  </s> remove     Meta class options for ModelSerializer
 </s> add     Meta class options for Serializer
        return serializer_class(data, instance=instance, context=context)
  
      def get_pagination_serializer(self, page=None):
          serializer_class = self.pagination_serializer_class
          context = self.get_serializer_context()
        return serializer_class(data, instance=instance, context=context)
        return serializer_class(data, instance=instance, context=context)
        return serializer_class(data, instance=instance, context=context)
  
  
  class MultipleObjectBaseView(MultipleObjectMixin, BaseView):
      """
      Base class for generic views onto a queryset.
keep keep keep keep replace replace replace keep keep keep keep keep
 Expand pagination support, add docs 
rest_framework/generics.py