]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix a typo in the relationship docs
authorWichert Akkerman <wichert@wiggy.net>
Thu, 16 Jan 2014 10:23:05 +0000 (11:23 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 19 Jan 2014 22:51:42 +0000 (17:51 -0500)
The text refers to ``boston_addresses``, while the code sample uses
``addresses``.

doc/build/orm/relationships.rst

index e98ec657c799111681d0dfdd6cda286093f9365c..67a41c8087df9ec3d8941af1557363908b03baa6 100644 (file)
@@ -967,7 +967,7 @@ load those ``Address`` objects which specify a city of "Boston"::
         __tablename__ = 'user'
         id = Column(Integer, primary_key=True)
         name = Column(String)
-        addresses = relationship("Address",
+        boston_addresses = relationship("Address",
                         primaryjoin="and_(User.id==Address.user_id, "
                             "Address.city=='Boston')")