]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] polymorphic_on now accepts many
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Dec 2011 05:56:12 +0000 (00:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Dec 2011 05:56:12 +0000 (00:56 -0500)
commitd1cc7e7517da26521639fb22826d6e91e51c928e
treeb0ddd0bdab3348171591d747543079bb4885d550
parent34fd58c793bac0d5a8a9e0ae2dbfcf93e8b7c602
- [feature] polymorphic_on now accepts many
new kinds of values:

- standalone expressions that aren't
otherwise mapped
- column_property() objects
- string names of any column_property()
or attribute name of a mapped Column

The docs include an example using
the case() construct, which is likely to be
a common constructed used here.
[ticket:2345] and part of [ticket:2238]
CHANGES
doc/build/orm/inheritance.rst
doc/build/orm/mapper_config.rst
doc/build/orm/relationships.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
test/orm/inheritance/test_basic.py