      def test_not_overridden_fields_view(self):
          Serializer = self.regular_view.get_serializer_class()
          self.assertEqual(Serializer().fields.keys(), ['id', 'text'])
  
  
  # Regression test for #285
  
 
</s> remove 
    _paginator_class = Paginator
 </s> add     paginator_class = Paginator </s> remove     # If the `model` shortcut is used instead of `serializer_class`, then the
    # serializer class will be constructed using this class as the base.
 </s> add     # The following attributes may be subject to change,
    # and should be considered private API. </s> remove             model = BasicModel
 </s> add             queryset = BasicModel.objects.all() </s> remove The usage of `model` attribute in generic Views is still supported, but it's usage is being discouraged in favour of using explict `queryset` and `serializer_class` attributes.
 </s> add The usage of `model` attribute in generic Views is still supported, but it's usage is being discouraged in favour of the more explict `queryset` attribute.
        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)
  
  
  # Regression test for #285
  
keep keep add keep keep keep keep
 Tweaks for preferring .queryset over .model 
rest_framework/tests/generics.py