  class NextPageField(serializers.Field):
      """
      Field that returns a link to the next page in paginated results.
      """
      def to_native(self, value):
          if not value.has_next():
              return None
          page = value.next_page_number()
 
</s> remove class PageField(serializers.Field):
    page_field = 'page'


class NextPageField(PageField):
 </s> add class NextPageField(serializers.Field): </s> remove class PreviousPageField(PageField):
 </s> add class PreviousPageField(serializers.Field):
    page_field = 'page'

  class NextPageField(serializers.Field):
      """
      Field that returns a link to the next page in paginated results.
      """
    page_field = 'page'

      def to_native(self, value):
          if not value.has_next():
              return None
          page = value.next_page_number()
keep keep keep add keep keep keep keep
 Simplify NextPageField and PreviousPageField slightly 
rest_framework/pagination.py