  """
  from django.http import Http404
  from rest_framework import status
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  
  
  class CreateModelMixin(object):
      """
      Create a model instance.
 
</s> remove 
    'PAGE_SIZE_KWARG': 'page_size'
 </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     Tests for list views with default page size kwarg
 </s> add     Tests for list views without pagination. </s> remove class CustomPageSizeKwargView(generics.ListAPIView):
 </s> add class PaginateByParamView(generics.ListAPIView):
  """
  from django.http import Http404
  from rest_framework import status
  from rest_framework.response import Response

  
  
  class CreateModelMixin(object):
      """
      Create a model instance.
keep keep keep keep replace keep keep keep keep keep
 Polishing to page size query parameters & more docs 
rest_framework/mixins.py