Skip to content

Commit 9f5b872

Browse files
authored
docs: Fix ambiguous phrasing regarding HeroPublicWithTeam model
1 parent bb10170 commit 9f5b872

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
@@ -152,7 +152,7 @@ Instead, here these are only **data models** that will tell FastAPI **which attr
152152

153153
### Reference to Other Models
154154

155-
Also, notice that the field `team` is not declared with this new `TeamPublicWithHeroes`, because that would again create that infinite recursion of data. Instead, we declare it with the normal `TeamPublic` model.
155+
Also, notice that in the `HeroPublicWithTeam` model, the field `team` is not declared with this new `TeamPublicWithHeroes`, because that would again create that infinite recursion of data. Instead, we declare it with the normal `TeamPublic` model.
156156

157157
And the same for `TeamPublicWithHeroes`, the model used for the new field `heroes` uses `HeroPublic` to get only each hero's data.
158158

0 commit comments

Comments
 (0)