]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
this can be any expression
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jul 2012 16:46:09 +0000 (12:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jul 2012 16:46:09 +0000 (12:46 -0400)
lib/sqlalchemy/orm/mapper.py

index cd2fa62d5971aabeb8220eaf416b4f192fa2f042..8b4a140f2e3c1cdfa172ca1f76faa311910d9574 100644 (file)
@@ -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.