From: Jason Kirtland Date: Wed, 21 May 2008 18:27:21 +0000 (+0000) Subject: - Another namespace cleanup tweak, why not. X-Git-Tag: rel_0_5beta1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d17498c1d8c28c4afbd13c545b05060c8ab1e49;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Another namespace cleanup tweak, why not. --- diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py index 3324b0d95e..b16004511b 100644 --- a/lib/sqlalchemy/ext/associationproxy.py +++ b/lib/sqlalchemy/ext/associationproxy.py @@ -126,9 +126,10 @@ class AssociationProxy(object): return (orm.class_mapper(self.owning_class). get_property(self.target_collection)) - def _target_class(self): + def target_class(self): + """The class the proxy is attached to.""" return self._get_property().mapper.class_ - target_class = property(_target_class) + target_class = property(target_class) def _target_is_scalar(self): return not self._get_property().uselist