          return relative_url
  
  
  class PreviousPageField(serializers.Field):
      def to_native(self, value):
          if not value.has_previous():
              return None
          page = value.previous_page_number()
          request = self.context.get('request')
 
</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 </s> remove     pagination_serializer_class = api_settings.PAGINATION_SERIALIZER
    paginate_by = api_settings.PAGINATE_BY
 </s> add  </s> remove         context = self.get_serializer_context()
        return serializer_class(data, instance=instance, context=context, **kwargs)
 </s> add         return serializer_class
    """
    Field that returns a link to the previous page in paginated results.
    """
          return relative_url
  
  
  class PreviousPageField(serializers.Field):
    """
    Field that returns a link to the previous page in paginated results.
    """
      def to_native(self, value):
          if not value.has_previous():
              return None
          page = value.previous_page_number()
          request = self.context.get('request')
keep keep keep add keep keep keep keep keep
 Expand pagination support, add docs 
rest_framework/pagination.py