summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index ac6a498c7..e2d2c559b 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -165,7 +165,7 @@ def create_proxied_attribute(descriptor):
return self._comparator
def adapted(self, adapter):
- return self.__class__(self.key, self.descriptor,
+ return self.__class__(self.class_, self.key, self.descriptor,
self._comparator,
adapter)