  
      def test_overridden_fields_view(self):
          Serializer = self.overridden_fields_view.get_serializer_class()
          self.assertEqual(Serializer().fields.keys(), ['text'])
  
      def test_not_overridden_fields_view(self):
          Serializer = self.regular_view.get_serializer_class()
          self.assertEqual(Serializer().fields.keys(), ['id', 'text'])
          self.assertEqual(Serializer().opts.model, BasicModel)
  
 
</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             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove                 model = self.model
 </s> add                 model = self.model or self.queryset.model
        self.assertEqual(Serializer().opts.model, BasicModel)
  
      def test_overridden_fields_view(self):
          Serializer = self.overridden_fields_view.get_serializer_class()
          self.assertEqual(Serializer().fields.keys(), ['text'])
        self.assertEqual(Serializer().opts.model, BasicModel)
  
      def test_not_overridden_fields_view(self):
          Serializer = self.regular_view.get_serializer_class()
          self.assertEqual(Serializer().fields.keys(), ['id', 'text'])
          self.assertEqual(Serializer().opts.model, BasicModel)
  
keep keep keep add keep keep keep keep keep keep
 Tweaks for preferring .queryset over .model 
rest_framework/tests/generics.py