]> 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:42 +0000 (17:24 -0500)
backport from master

Change-Id: If3ffe0945f47010e1ddecabfc27a6e7707031fd9
(cherry picked from commit bcf2d5826ce8b1c68ee346154e86a4ecc9ac61c7)

lib/sqlalchemy/ext/associationproxy.py

index 4fdac827af7d50e99269d8384d7c13be06d90068..8c048bf1ff6a8fafe999965ad91ec64ef7e5865e 100644 (file)
@@ -161,32 +161,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)