      model_serializer_class = api_settings.MODEL_SERIALIZER
  
      def get_serializer_context(self):
          return {
              'request': self.request,
              'format': self.format,
              'view': self
 
</s> remove             'format': self.kwargs.get('format', None)
 </s> add             'format': self.format,
            'view': self </s> remove     pagination_serializer_class = api_settings.PAGINATION_SERIALIZER
    paginate_by = api_settings.PAGINATE_BY
 </s> add  </s> remove     def get_serializer(self, data=None, files=None, instance=None, kwargs=None):
        # TODO: add support for files
        # TODO: add support for seperate serializer/deserializer
 </s> add     def get_serializer_class(self):
        """
        Return the class to use for the serializer.
        Use `self.serializer_class`, falling back to constructing a
        model serializer class from `self.model_serializer_class`
        """ </s> remove         request = self.context['request']
        return request.build_absolute_uri('?page=%d' % page)
 </s> add         request = self.context.get('request')
        relative_url = '?page=%d' % page
        if request:
            return request.build_absolute_uri(relative_url)
        return relative_url </s> remove         request = self.context['request']
        return request.build_absolute_uri('?page=%d' % page)
 </s> add         request = self.context.get('request')
        relative_url = '?page=%d' % page
        if request:
            return request.build_absolute_uri('?page=%d' % page)
        return relative_url
        """
        Extra context provided to the serializer class.
        """
      model_serializer_class = api_settings.MODEL_SERIALIZER
  
      def get_serializer_context(self):
        """
        Extra context provided to the serializer class.
        """
          return {
              'request': self.request,
              'format': self.format,
              'view': self
keep keep add keep keep keep keep
 Expand pagination support, add docs 
rest_framework/generics.py