]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add the "triggering mapper" to the configure_mappers error message.
authorJohn Perkins <john.d.perkins@gmail.com>
Fri, 5 Aug 2016 17:45:49 +0000 (13:45 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2016 16:11:11 +0000 (12:11 -0400)
commite95aa257aa3145a5db478d33fb1803494a38b46d
tree1e235379669c56444d21a3fa50b1e91d008686db
parent881369b949cff44e0017fdc28d9722ef3c26171a
Add the "triggering mapper" to the configure_mappers error message.

There are cases where the originating mapper name is not
present in the exception message, such as relationship initialization
against an unmapped class.   Ensure the originating mapper is named
in the string output.

Pull-request: https://github.com/zzzeek/sqlalchemy/pull/298
Change-Id: I9f23bfa90b26dde9229ab7ec812eec9ceae48153
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/orm/mapper.py
test/ext/declarative/test_basic.py
test/orm/test_mapper.py