]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve abstractconcretebase
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Aug 2022 21:47:19 +0000 (17:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Aug 2022 17:47:14 +0000 (13:47 -0400)
commitd0abdbe247dc82db51aa0af3d31b051042a8ba87
tree53d2b906fdccc76378f68104d0b8786ab0aa884d
parenta47d76ca25275344345b208def5f72292e8687b4
improve abstractconcretebase

try to limit the attributes on the base and set up wpoly
etc so that things still work the way we want.

It seems like I've tried this in the past before so not sure
if this is actually working or if there are problems.   it needs
a little more strictness on how you set up your base since
attributes are no longer implicit.  So, it seems like perhaps
the new behavior should be on a flag or something like
"strict_attributes=True", something like that, so that nothing
breaks for existing users and we can slowly deal with the new
way being a little bit less worse than the old way.

Fixes: #8403
Change-Id: Ic9652d9a0b024d649807aaf3505e67173e7dc3b9
doc/build/orm/inheritance.rst
lib/sqlalchemy/ext/declarative/extensions.py
test/ext/declarative/test_inheritance.py
test/orm/inheritance/test_concrete.py