summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-23 15:27:47 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-23 15:27:47 -0500
commit6cd730541f4e61fb8262ac50752c21cf1e7262ac (patch)
treef6dceb9d0be15e5a101d6119182eb227b86f2958 /lib/sqlalchemy/orm/attributes.py
parente9d1b5b8de35dabc42d7dcf91c01783fa3133733 (diff)
downloadsqlalchemy-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.py3
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