      'URL_ACCEPT_OVERRIDE': 'accept',
      'URL_FORMAT_OVERRIDE': 'format',
  
      'FORMAT_SUFFIX_KWARG': 'format',
  
      'PAGE_SIZE_KWARG': 'page_size'
  }
  
  
  # List of settings that may be in string import notation.
  IMPORT_STRINGS = (
 
</s> remove     page_size_kwarg = api_settings.PAGE_SIZE_KWARG
 </s> add  </s> remove from rest_framework.settings import api_settings
 </s> add  </s> remove     def get_paginate_by(self, queryset):
        if self.page_size_kwarg is not None:
            page_size_kwarg = self.request.QUERY_PARAMS.get(self.page_size_kwarg)
            if page_size_kwarg:
                try:
                    page_size = int(page_size_kwarg)
                    return page_size
                except ValueError:
                    pass
        return super(ListModelMixin, self).get_paginate_by(queryset)

 </s> add  </s> remove     page_size_kwarg = 'ps'


class NonePageSizeKwargView(generics.ListAPIView):
    """
    View for testing None page_size usage
    """
    model = BasicModel
    page_size_kwarg = None
 </s> add     paginate_by_param = 'page_size'
      'URL_ACCEPT_OVERRIDE': 'accept',
      'URL_FORMAT_OVERRIDE': 'format',
  
      'FORMAT_SUFFIX_KWARG': 'format',


  }
  
  
  # List of settings that may be in string import notation.
  IMPORT_STRINGS = (
keep keep keep keep replace replace keep keep keep keep keep
 Polishing to page size query parameters & more docs 
rest_framework/settings.py