          return False
  
  
  class BasicPermWithDetail(permissions.BasePermission):
      message = 'Custom: You cannot post to this resource'
  
      def has_permission(self, request, view):
          return False
  
  
 
</s> remove         self.custom_message = 'Custom: You cannot post to this resource'
 </s> add         self.custom_message = 'Custom: You cannot access this resource' </s> remove     message = 'Custom: You cannot post to this resource'
 </s> add     message = 'Custom: You cannot access this resource'
    message = 'Custom: You cannot access this resource'
          return False
  
  
  class BasicPermWithDetail(permissions.BasePermission):
    message = 'Custom: You cannot access this resource'
  
      def has_permission(self, request, view):
          return False
  
  
keep keep keep keep replace keep keep keep keep keep
 change custom message for clarity 
tests/test_permissions.py