]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Look for __sa_reconstructor__ on original_init
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Feb 2018 14:36:25 +0000 (09:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Feb 2018 14:36:25 +0000 (09:36 -0500)
commita721e7083f3a824c4503b78d83e58f2235cd4991
tree35416430a81a46de421b1d0313986a7537ff8843
parent399988aaed401ea6fc69aa580b9b71c236a30f16
Look for __sa_reconstructor__ on original_init

Fixed bug where the :func:`.orm.reconstructor` event
helper would not be recognized if it were applied to the
``__init__()`` method of the mapped class.

It's not clear when this bug appeared, but was likely
during a refactoring of instrumentation mechanics somewhere
between 0.8 and 1.0.

Change-Id: Iaeb3baffef9e1b40a336d44294e68479f5d65fd3
Fixes: #4178
doc/build/changelog/unreleased_12/4178.rst [new file with mode: 0644]
lib/sqlalchemy/orm/instrumentation.py
lib/sqlalchemy/orm/mapper.py
test/orm/test_mapper.py