          """
          for permission in self.get_permissions():
              if not permission.has_object_permission(request, self, obj):
                  self.permission_denied(
                      request, message=getattr(permission, 'message', None)
                  )
  
      def check_throttles(self, request):
          """
          Check if request should be throttled.
 
</s> remove                     request, message=getattr(permission, 'message', None)
 </s> add                     request,
                    message=getattr(permission, 'message', None),
                    code=getattr(permission, 'code', None) </s> remove     def permission_denied(self, request, message=None):
 </s> add     def permission_denied(self, request, message=None, code=None): </s> remove         raise exceptions.PermissionDenied(detail=message)
 </s> add         raise exceptions.PermissionDenied(detail=message, code=code)
                    request,
                    message=getattr(permission, 'message', None),
                    code=getattr(permission, 'code', None)
          """
          for permission in self.get_permissions():
              if not permission.has_object_permission(request, self, obj):
                  self.permission_denied(
                    request,
                    message=getattr(permission, 'message', None),
                    code=getattr(permission, 'code', None)
                  )
  
      def check_throttles(self, request):
          """
          Check if request should be throttled.
keep keep keep keep replace keep keep keep keep keep
 Pass custom code to PermissionDenied if permission class had one set (#7306) 
rest_framework/views.py