]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Standalone expressions in polymorphic_on
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Dec 2011 16:12:41 +0000 (11:12 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Dec 2011 16:12:41 +0000 (11:12 -0500)
commit33ddb48da48af3425a71543da8bab7911455cfee
treed8bb9d4c0302f8786adbfe2223d1f9389ea4d7fc
parentd1cc7e7517da26521639fb22826d6e91e51c928e
- Standalone expressions in polymorphic_on
propagate to single-table inheritance
subclasses so that they are used in the
WHERE /JOIN clause to limit rows to that
subclass as is the usual behavior.
- make sure implicit map to polymorphic_on expr
handles creating a label().  Use an explicit name
here as _sa_polymorphic_on makes more sense when
poking around in _props.
CHANGES
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_basic.py
test/orm/test_mapper.py