]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve "overlaps" warning; test for m2m
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Jun 2021 20:03:52 +0000 (16:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Jun 2021 20:05:40 +0000 (16:05 -0400)
commit0c46a5753329a4f82784ccc457ba1a0e750815b9
treeb211666808eb74c54804288ea0b07dd9e8946390
parentd8578fe0996718433cc8e0c440eb855f71fbc2c6
improve "overlaps" warning; test for m2m

The warning that's emitted for :func:`_orm.relationship` when multiple
relationships would overlap with each other as far as foreign key
attributes written towards, now includes the specific "overlaps" argument
to use for each warning in order to silence the warning without changing
the mapping.

Fixes: #6400
Change-Id: I43c04f8018dda4e0f83ae58b8c7fd95084d9e95d
doc/build/changelog/unreleased_14/6400.rst [new file with mode: 0644]
doc/build/errors.rst
lib/sqlalchemy/orm/relationships.py
test/orm/test_relationships.py