diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-27 16:04:16 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-27 16:04:16 -0400 |
| commit | 640625bc9e98dd4060a1e61c717ddc98f8b3808b (patch) | |
| tree | 8c8e19184af6c70ccc382d4f86111dae8c3ffdfe /lib/sqlalchemy/orm/interfaces.py | |
| parent | 326f2e4f60744d8073eaa4eda69d1dbb46bc9f50 (diff) | |
| download | sqlalchemy-640625bc9e98dd4060a1e61c717ddc98f8b3808b.tar.gz | |
- [feature] Conflicts between columns on
single-inheritance declarative subclasses,
with or without using a mixin, can be resolved
using a new @declared_attr usage described
in the documentation. [ticket:2472]
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
| -rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 12c38b595..272d4edd5 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -65,7 +65,12 @@ class _InspectionAttr(object): is_attribute = False is_clause_element = False -class MapperProperty(_InspectionAttr): +class _MappedAttribute(object): + """Mixin for attributes which should be replaced by mapper-assigned + attributes. + + """ +class MapperProperty(_MappedAttribute, _InspectionAttr): """Manage the relationship of a ``Mapper`` to a single class attribute, as well as that attribute as it appears on individual instances of the class, including attribute instrumentation, |
