]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The "wildcard" loader options, in particular the one set up by
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 22:04:35 +0000 (17:04 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 22:04:35 +0000 (17:04 -0500)
commitb63aae2c232f980a47aa2a635c35dfa45390f451
tree61d23fbb2884155a30e3117198668e7c59117002
parent268bb4d5f6a8c8a23d6f53014980bba58698b4b4
- The "wildcard" loader options, in particular the one set up by
the :func:`.orm.load_only` option to cover all attributes not
explicitly mentioned, now takes into account the superclasses
of a given entity, if that entity is mapped with inheritance mapping,
so that attribute names within the superclasses are also omitted
from the load.  Additionally, the polymorphic discriminator column
is unconditionally included in the list, just in the same way that
primary key columns are, so that even with load_only() set up,
polymorphic loading of subtypes continues to function correctly.
fixes #3287
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py