              page_size = self.get_paginate_by()
              if not page_size:
                  return None
  
          paginator = self._paginator_class(queryset, page_size,
                                            allow_empty_first_page=self.allow_empty)
          page_kwarg = self.kwargs.get(self.page_kwarg)
          page_query_param = self.request.QUERY_PARAMS.get(self.page_kwarg)
          page = page_kwarg or page_query_param or 1
          try:
              page_number = int(page)
 
</s> remove                 model = self.model
 </s> add                 model = self.model or self.queryset.model </s> remove             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove 
    _paginator_class = Paginator
 </s> add     paginator_class = Paginator
        paginator = self.paginator_class(queryset, page_size,
                                         allow_empty_first_page=self.allow_empty)
              page_size = self.get_paginate_by()
              if not page_size:
                  return None
  
        paginator = self.paginator_class(queryset, page_size,
                                         allow_empty_first_page=self.allow_empty)
        paginator = self.paginator_class(queryset, page_size,
                                         allow_empty_first_page=self.allow_empty)
          page_kwarg = self.kwargs.get(self.page_kwarg)
          page_query_param = self.request.QUERY_PARAMS.get(self.page_kwarg)
          page = page_kwarg or page_query_param or 1
          try:
              page_number = int(page)
keep keep keep keep replace replace keep keep keep keep keep
 Tweaks for preferring .queryset over .model 
rest_framework/generics.py