              return serializer_class
  
          class DefaultSerializer(self.model_serializer_class):
              class Meta:
                  model = self.model
                  fields = self.fields
          return DefaultSerializer
  
      def get_queryset(self):
          """
 
</s> remove             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove         paginator = self._paginator_class(queryset, page_size,
                                          allow_empty_first_page=self.allow_empty)
 </s> add         paginator = self.paginator_class(queryset, page_size,
                                         allow_empty_first_page=self.allow_empty) </s> remove It also makes it the usage of overridden `get_queryset()` or `get_serializer_class()` methods more obvious.
 </s> add It also makes the usage of an overridden `get_queryset()` method more obvious.
                model = self.model or self.queryset.model
              return serializer_class
  
          class DefaultSerializer(self.model_serializer_class):
              class Meta:
                model = self.model or self.queryset.model
                  fields = self.fields
          return DefaultSerializer
  
      def get_queryset(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Tweaks for preferring .queryset over .model 
rest_framework/generics.py