From 5291df27000d5da8693c1278de557d01ffca046b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 24 Dec 2010 11:39:56 -0500 Subject: [PATCH] bugfix --- lib/sqlalchemy/orm/attributes.py | 2 +- lib/sqlalchemy/orm/descriptor_props.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index ac6a498c72..e2d2c559b0 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) diff --git a/lib/sqlalchemy/orm/descriptor_props.py b/lib/sqlalchemy/orm/descriptor_props.py index a1498bfd49..6fb2d2c572 100644 --- a/lib/sqlalchemy/orm/descriptor_props.py +++ b/lib/sqlalchemy/orm/descriptor_props.py @@ -71,7 +71,7 @@ class DescriptorProperty(MapperProperty): fset=self.descriptor.__set__, fdel=self.descriptor.__delete__, ) - + proxy_attr = attributes.\ create_proxied_attribute(self.descriptor or descriptor)\ ( -- 2.47.3