diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-23 15:27:47 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-23 15:27:47 -0500 |
commit | 6cd730541f4e61fb8262ac50752c21cf1e7262ac (patch) | |
tree | f6dceb9d0be15e5a101d6119182eb227b86f2958 /lib/sqlalchemy/orm/attributes.py | |
parent | e9d1b5b8de35dabc42d7dcf91c01783fa3133733 (diff) | |
download | sqlalchemy-6cd730541f4e61fb8262ac50752c21cf1e7262ac.tar.gz |
- restore declarative support for "composite"
- add an example of mutable scalars with events
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 40a69d96a..ac6a498c7 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -149,7 +149,8 @@ def create_proxied_attribute(descriptor): class Proxy(QueryableAttribute): """A combination of InsturmentedAttribute and a regular descriptor.""" - def __init__(self, key, descriptor, comparator, adapter=None): + def __init__(self, class_, key, descriptor, comparator, adapter=None): + self.class_ = class_ self.key = key self.descriptor = descriptor self._comparator = comparator |