From 8346e52495a5cd136930205c544351343310a0a4 Mon Sep 17 00:00:00 2001 From: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> Date: Wed, 27 Aug 2025 20:53:05 +0200 Subject: [PATCH] =?utf8?q?=E2=9C=8F=EF=B8=8F=20Fix=20typos=20in=20`docs/tu?= =?utf8?q?torial/relationship-attributes/cascade-delete-relationships.md`?= =?utf8?q?=20(#1543)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix typos --- .../relationship-attributes/cascade-delete-relationships.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/relationship-attributes/cascade-delete-relationships.md b/docs/tutorial/relationship-attributes/cascade-delete-relationships.md index 1683c9cb..3b6fe915 100644 --- a/docs/tutorial/relationship-attributes/cascade-delete-relationships.md +++ b/docs/tutorial/relationship-attributes/cascade-delete-relationships.md @@ -185,7 +185,7 @@ For example, **SQLite** doesn't support them by default. They have to be manuall PRAGMA foreign_keys = ON; ``` -So, in general is a good idea to have both `cascade_delete` and `ondelete` configured. +So, in general it's a good idea to have both `cascade_delete` and `ondelete` configured. /// tip @@ -203,7 +203,7 @@ Just a note to remember... 🤓 class Hero(SQLModel, table=True): ... - team_id: int Field(foreign_key="team.id", ondelete="CASCADE") + team_id: int = Field(foreign_key="team.id", ondelete="CASCADE") ``` * `cascade_delete` is put on the `Relationship()`. Normally on the **"one"** side in "one-to-many" relationships, the side **without a foreign key**. @@ -348,7 +348,7 @@ The result would be these tables. | id | name | secret_name | age | team_id | | ---- | --------------- | ---------------- | ---- | ------- | -| 1 | Deadpond | Dive WIlson | | 1 | +| 1 | Deadpond | Dive Wilson | | 1 | | 2 | Rusty-Man | Tommy Sharp | 48 | 2 | | 3 | Spider-Boy | Pedro Parqueador | | 2 | | 4 | Black Lion | Trevor Challa | 35 | NULL | -- 2.47.3