]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A quasi-regression where apparently in 0.8 you can set a class-level
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 Jan 2014 23:51:49 +0000 (18:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 Jan 2014 23:51:49 +0000 (18:51 -0500)
commit8a7fdd4e5cf5e4d9ba71c66a06bcba6b1054cfef
treee4ce11d8516235d6df37ca91ea40bf31f8e6edc1
parentca8fca63916897f1bbc2fa4f1ee440c6b5d9a88a
- A quasi-regression where apparently in 0.8 you can set a class-level
attribute on declarative to simply refer directly to an :class:`.InstrumentedAttribute`
on a superclass or on the class itself, and it
acts more or less like a synonym; in 0.9, this fails to set up enough
bookkeeping to keep up with the more liberalized backref logic
from :ticket:`2789`.  Even though this use case was never directly
considered, it is now detected by declarative at the "setattr()" level
as well as when setting up a subclass, and the mirrored/renamed attribute
is now set up as a :func:`.synonym` instead. [ticket:2900]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/ext/declarative/base.py
test/ext/declarative/test_basic.py