diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-18 12:46:09 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-18 12:46:09 -0400 |
| commit | 643a9afa86328ca6038d00543700dbe0f51af5e6 (patch) | |
| tree | 670f189b5cb63e21948f5993599e2ebe664b2041 /lib/sqlalchemy/orm/mapper.py | |
| parent | 2a0740e22b72aa8082a8a37e75429187d45a6722 (diff) | |
| download | sqlalchemy-643a9afa86328ca6038d00543700dbe0f51af5e6.tar.gz | |
this can be any expression
Diffstat (limited to 'lib/sqlalchemy/orm/mapper.py')
| -rw-r--r-- | lib/sqlalchemy/orm/mapper.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index cd2fa62d5..8b4a140f2 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -360,11 +360,13 @@ class Mapper(_InspectionAttr): """ polymorphic_on = None - """The :class:`.Column` specified as the ``polymorphic_on`` column + """The :class:`.Column` or SQL expression specified as the + ``polymorphic_on`` argument for this :class:`.Mapper`, within an inheritance scenario. - This attribute may also be of other types besides :class:`.Column` - in a future SQLAlchemy release. + This attribute is normally a :class:`.Column` instance but + may also be an expression, such as one derived from + :func:`.cast`. This is a *read only* attribute determined during mapper construction. Behavior is undefined if directly modified. |
