]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Another namespace cleanup tweak, why not.
authorJason Kirtland <jek@discorporate.us>
Wed, 21 May 2008 18:27:21 +0000 (18:27 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 21 May 2008 18:27:21 +0000 (18:27 +0000)
lib/sqlalchemy/ext/associationproxy.py

index 3324b0d95e21b18750bfbaa67f7363e1042705bb..b16004511bbf5703b9f313b522b9eceaf6fcd37a 100644 (file)
@@ -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