          }
          return [perm % kwargs for perm in self.perms_map[method]]
  
      def has_object_permission(self, request, view, obj):
          model_cls = getattr(view, 'model', None)
          queryset = getattr(view, 'queryset', None)
  
          if model_cls is None and queryset is not None:
              model_cls = queryset.model
  
          perms = self.get_required_object_permissions(request.method, model_cls)
          user = request.user
  
          if not user.has_perms(perms, obj):
 
</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(view, 'model', None)
 </s> add  </s> remove         user = request.user
 </s> add  </s> remove         if model_cls is None and queryset is not None:
            model_cls = queryset.model

 </s> add  </s> remove     provide a `.model` or `.queryset` attribute.
 </s> add     provide a `.queryset` attribute.
        model_cls = view.queryset.model
        user = request.user
          }
          return [perm % kwargs for perm in self.perms_map[method]]
  
      def has_object_permission(self, request, view, obj):
        model_cls = view.queryset.model
        user = request.user
        model_cls = view.queryset.model
        user = request.user
        model_cls = view.queryset.model
        user = request.user
        model_cls = view.queryset.model
        user = request.user
        model_cls = view.queryset.model
        user = request.user
  
          perms = self.get_required_object_permissions(request.method, model_cls)
          user = request.user
  
          if not user.has_perms(perms, obj):
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Removed deprecated '.model' attribute check 
rest_framework/permissions.py