pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/estarfoo/sqlmodel/commit/d032c3cfea5ce799a637ea9d40b5f5209a3330c1

rossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> ✏ Fix typo variable in example about relationships and `back_populate… · estarfoo/sqlmodel@d032c3c · GitHub
Skip to content

Commit d032c3c

Browse files
onionjtiangolo
andauthored
✏ Fix typo variable in example about relationships and back_populates, always use hero instead of owner (fastapi#120)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 parent 006cf48 commit d032c3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • docs_src/tutorial/relationship_attributes/back_populates

docs_src/tutorial/relationship_attributes/back_populates/tutorial003.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Hero(SQLModel, table=True):
3636
team: Optional[Team] = Relationship(back_populates="heroes")
3737

3838
weapon_id: Optional[int] = Field(default=None, foreign_key="weapon.id")
39-
weapon: Optional[Weapon] = Relationship(back_populates="owner")
39+
weapon: Optional[Weapon] = Relationship(back_populates="hero")
4040

4141
powers: List[Power] = Relationship(back_populates="hero")
4242

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy