From: Mike Bayer Date: Tue, 2 Jan 2007 03:43:09 +0000 (+0000) Subject: - added "none" to the list of cascades, although im not sure if we should really... X-Git-Tag: rel_0_3_4~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d2f2ec33bdd2b69039322ed5f2f4d57656c6de0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - added "none" to the list of cascades, although im not sure if we should really allow "none" since it currently doesnt do anything (what should it do, cancel out the other cascades?) --- diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 9fe0dc2a23..a3ba72812e 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -6,7 +6,7 @@ from sqlalchemy import sql, util, exceptions -all_cascades = util.Set(["delete", "delete-orphan", "all", "merge", "expunge", "save-update", "refresh-expire"]) +all_cascades = util.Set(["delete", "delete-orphan", "all", "merge", "expunge", "save-update", "refresh-expire", "none"]) class CascadeOptions(object): """keeps track of the options sent to relation().cascade""" def __init__(self, arg=""):