def METHOD_NAME(perm, obj):
    if is_delete_action(perm):
        deletable = getattr(obj, DELETABLE_ATTRIBUTE_KEY, True)
        if not deletable:
            raise PermissionDenied
    return False