  
  class TestTrailingSlashIncluded(TestCase):
      def setUp(self):
          class NoteViewSet(viewsets.ModelViewSet):
              model = RouterTestModel
  
          self.router = SimpleRouter()
          self.router.register(r'notes', NoteViewSet)
          self.urls = self.router.urls
  
 
</s> remove             model = RouterTestModel
 </s> add             queryset = RouterTestModel.objects.all() </s> remove             model = RouterTestModel
 </s> add             queryset = RouterTestModel.objects.all()
 </s> remove         if model_cls is None and queryset is not None:
            model_cls = queryset.model
 </s> add  </s> remove         # Note that `.model` attribute on views is deprecated, although we
        # enforce the deprecation on the view `get_serializer_class()` and
        # `get_queryset()` methods, rather than here.
        model_cls = getattr(viewset, 'model', None)
 </s> add  </s> remove         assert model_cls, '`base_name` argument not specified, and could ' \
 </s> add         assert queryset is not None, '`base_name` argument not specified, and could ' \
            queryset = RouterTestModel.objects.all()
  
  class TestTrailingSlashIncluded(TestCase):
      def setUp(self):
          class NoteViewSet(viewsets.ModelViewSet):
            queryset = RouterTestModel.objects.all()
  
          self.router = SimpleRouter()
          self.router.register(r'notes', NoteViewSet)
          self.urls = self.router.urls
  
keep keep keep keep replace keep keep keep keep keep
 Removed router check for deprecated '.model' attribute 
tests/test_routers.py