]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remote_attr and local_attr refer to class bound attributes, not MapperProperty
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2019 22:24:27 +0000 (17:24 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2019 22:24:27 +0000 (17:24 -0500)
backport from master

Change-Id: If3ffe0945f47010e1ddecabfc27a6e7707031fd9

lib/sqlalchemy/ext/associationproxy.py

index 2ae9e3f5569a3a2d802a39da743254b6f284a6c3..5ab76857b8b90d65516f9e60760da1add17f445a 100644 (file)
@@ -174,32 +174,28 @@ class AssociationProxy(interfaces.InspectionAttrInfo):
 
     @property
     def remote_attr(self):
-        """The 'remote' :class:`.MapperProperty` referenced by this
+        """The 'remote' class attribute referenced by this
         :class:`.AssociationProxy`.
 
-        .. versionadded:: 0.7.3
-
-        See also:
+        .. seealso::
 
-        :attr:`.AssociationProxy.attr`
+            :attr:`.AssociationProxy.attr`
 
-        :attr:`.AssociationProxy.local_attr`
+            :attr:`.AssociationProxy.local_attr`
 
         """
         return getattr(self.target_class, self.value_attr)
 
     @property
     def local_attr(self):
-        """The 'local' :class:`.MapperProperty` referenced by this
+        """The 'local' class attribute referenced by this
         :class:`.AssociationProxy`.
 
-        .. versionadded:: 0.7.3
-
-        See also:
+        .. seealso::
 
-        :attr:`.AssociationProxy.attr`
+            :attr:`.AssociationProxy.attr`
 
-        :attr:`.AssociationProxy.remote_attr`
+            :attr:`.AssociationProxy.remote_attr`
 
         """
         return getattr(self.owning_class, self.target_collection)