          it from the viewset.
          """
          model_cls = getattr(viewset, 'model', None)
          queryset = getattr(viewset, 'queryset', None)
          if model_cls is None and queryset is not None:
              model_cls = queryset.model
 
</s> remove             'it does not have a `.model` or `.queryset` attribute.'
 </s> add             'it does not have a `.queryset` attribute.'
        # 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.
          it from the viewset.
          """
        # 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)
          queryset = getattr(viewset, 'queryset', None)
          if model_cls is None and queryset is not None:
              model_cls = queryset.model
keep add keep keep keep keep
 Deprecate .model in related routers/permissions 
rest_framework/routers.py