mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-11-02 12:26:33 +08:00
✏ Fix broken variable/typo in docs for Read Relationships, hero_spider_boy.id => hero_spider_boy.team_id (#106)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
@ -99,7 +99,7 @@ def select_heroes():
|
||||
result = session.exec(statement)
|
||||
hero_spider_boy = result.one()
|
||||
|
||||
statement = select(Team).where(Team.id == hero_spider_boy.id)
|
||||
statement = select(Team).where(Team.id == hero_spider_boy.team_id)
|
||||
result = session.exec(statement)
|
||||
team = result.first()
|
||||
print("Spider-Boy's team:", team)
|
||||
|
||||
Reference in New Issue
Block a user