diff options
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/relationships.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index efdd7edf1..171df3e21 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -3451,8 +3451,9 @@ class JoinCondition(object): "constraints are partially overlapping, the " "orm.foreign() " "annotation can be used to isolate the columns that " - "should be written towards. The 'overlaps' " - "parameter may be used to remove this warning." + "should be written towards. To silence this " + "warning, add the parameter 'overlaps=\"%s\"' to the " + "'%s' relationship." % ( self.prop, from_, @@ -3461,6 +3462,8 @@ class JoinCondition(object): "'%s' (copies %s to %s)" % (pr, fr_, to_) for (pr, fr_) in other_props ), + ",".join(pr.key for pr, fr in other_props), + self.prop, ), code="qzyx", ) |
