@@ -0,0 +1,507 @@
+class BasePermission:%0A    %22%22%22%0A    All permission classes should inherit from this class.%0A%0A    Override message to customize the message associated with the exception.%0A    %22%22%22%0A%0A    message = None%0A%0A    def has_permission(self, request, view):%0A        %22%22%22%0A        Return %60True%60 if permission is granted else false.%0A        %22%22%22%0A%0A        return True%0A%0A    def has_object_permission(self, request, view, obj):%0A        %22%22%22%0A        Return %60True%60 if permission is granted else false.%0A        %22%22%22%0A%0A        return True%0A

add permission base class