]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update warning text for cascade_backrefs=False
authorStephen Rosen <sirosen@globus.org>
Fri, 9 Apr 2021 23:41:45 +0000 (23:41 +0000)
committerStephen Rosen <sirosen@globus.org>
Fri, 9 Apr 2021 23:41:45 +0000 (23:41 +0000)
lib/sqlalchemy/orm/unitofwork.py

index 1fb1c10acf3896808a01a1c776dc8e0685814981..f2b5cf75f88f74c00dcb7277c052d8c095be896f 100644 (file)
@@ -26,7 +26,8 @@ def _warn_for_cascade_backrefs(state, prop):
         '"%s" object is being merged into a Session along the backref '
         'cascade path for relationship "%s"; in SQLAlchemy 2.0, this '
         "reverse cascade will not take place.  Set cascade_backrefs to "
-        "False for the 2.0 behavior; or to set globally for the whole "
+        "False in either the relationship() or backref() function for "
+        "the 2.0 behavior; or to set globally for the whole "
         "Session, set the future=True flag" % (state.class_.__name__, prop)
     )