diff options
| author | Maple <wang-jiaxun@outlook.com> | 2022-04-03 17:30:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 11:30:08 +0200 |
| commit | 2ea12b2f5c9285acf9dcbf3a94e7cfabd4f5085d (patch) | |
| tree | 66b39165dd89ea587d719f3e8dc1629efdd9dc1a /doc/build/tutorial | |
| parent | 990715adb4529432250c9864b586e59aa60ed372 (diff) | |
| download | sqlalchemy-2ea12b2f5c9285acf9dcbf3a94e7cfabd4f5085d.tar.gz | |
fix small indentation typo (#7882)
Diffstat (limited to 'doc/build/tutorial')
| -rw-r--r-- | doc/build/tutorial/metadata.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/build/tutorial/metadata.rst b/doc/build/tutorial/metadata.rst index 24284c4aa..afaf9d610 100644 --- a/doc/build/tutorial/metadata.rst +++ b/doc/build/tutorial/metadata.rst @@ -446,18 +446,18 @@ than having the declarative process generate it:: class User(Base): __table__ = user_table - addresses = relationship("Address", back_populates="user") + addresses = relationship("Address", back_populates="user") - def __repr__(self): + def __repr__(self): return f"User({self.name!r}, {self.fullname!r})" class Address(Base): __table__ = address_table - user = relationship("User", back_populates="addresses") + user = relationship("User", back_populates="addresses") - def __repr__(self): - return f"Address({self.email_address!r})" + def __repr__(self): + return f"Address({self.email_address!r})" The above two classes are equivalent to those which we declared in the previous mapping example. |
