Skip to content

Commit bd4a42d

Browse files
committed
apply suggestion from Yurii
1 parent 3889107 commit bd4a42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/fastapi/relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Then we do the same for the `TeamPublicWithHeroes`, it **inherits** from `TeamPu
146146

147147
### Data Models Without Relationship Attributes
148148

149-
Now, notice that these new fields `team` and `heroes` are not declared with `Relationship()`, because these are not **table models**, they cannot have **relationship attributes** with the magic access to get that data from the database.
149+
Now, notice that these new fields `team` and `heroes` are not declared with `Relationship()`, because `HeroPublicWithTeam` and `TeamPublicWithHeroes` are not **table models**, they cannot have **relationship attributes** with the magic access to get that data from the database.
150150

151151
Instead, here these are only **data models** that will tell FastAPI **which attributes** to get data from and **which data** to get from them.
152152

0 commit comments

Comments
 (0)