Skip to content

Commit 0197c6e

Browse files
xginn8tiangolo
andauthored
✏ Fix typos in docs/tutorial/many-to-many/create-models-with-link.md (#45)
Co-authored-by: Sebastián Ramírez <[email protected]>
1 parent 6da8dcf commit 0197c6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/tutorial/many-to-many/create-models-with-link.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ And **both fields are primary keys**. We hadn't used this before. 🤓
4040
Let's see the `Team` model, it's almost identical as before, but with a little change:
4141

4242
```Python hl_lines="8"
43-
# Code above ommited 👆
43+
# Code above omitted 👆
4444

4545
{!./docs_src/tutorial/many_to_many/tutorial001.py[ln:15-20]!}
4646

@@ -56,7 +56,7 @@ Let's see the `Team` model, it's almost identical as before, but with a little c
5656

5757
</details>
5858

59-
The **relationship attribute `heroes`** is still a list of heroes, annotatted as `List["Hero"]`. Again, we use `"Hero"` in quotes because we haven't declared that class yet by this point in the code (but as you know, editors and **SQLModel** understand that).
59+
The **relationship attribute `heroes`** is still a list of heroes, annotated as `List["Hero"]`. Again, we use `"Hero"` in quotes because we haven't declared that class yet by this point in the code (but as you know, editors and **SQLModel** understand that).
6060

6161
We use the same **`Relationship()`** function.
6262

@@ -69,7 +69,7 @@ And here's the important part to allow the **many-to-many** relationship, we use
6969
Let's see the other side, here's the `Hero` model:
7070

7171
```Python hl_lines="9"
72-
# Code above ommited 👆
72+
# Code above omitted 👆
7373

7474
{!./docs_src/tutorial/many_to_many/tutorial001.py[ln:23-29]!}
7575

@@ -102,7 +102,7 @@ And now we have a **`link_model=HeroTeamLink`**. ✨
102102
The same as before, we will have the rest of the code to create the **engine**, and a function to create all the tables `create_db_and_tables()`.
103103

104104
```Python hl_lines="9"
105-
# Code above ommited 👆
105+
# Code above omitted 👆
106106

107107
{!./docs_src/tutorial/many_to_many/tutorial001.py[ln:32-39]!}
108108

@@ -122,7 +122,7 @@ The same as before, we will have the rest of the code to create the **engine**,
122122
And as in previous examples, we will add that function to a function `main()`, and we will call that `main()` function in the main block:
123123

124124
```Python hl_lines="4"
125-
# Code above ommited 👆
125+
# Code above omitted 👆
126126

127127
{!./docs_src/tutorial/many_to_many/tutorial001.py[ln:78-79]!}
128128
# We will do more stuff here later 👈
@@ -149,7 +149,7 @@ If you run the code in the command line, it would output:
149149
```console
150150
$ python app.py
151151

152-
// Boilerplate ommited 😉
152+
// Boilerplate omitted 😉
153153

154154
INFO Engine
155155
CREATE TABLE team (

0 commit comments

Comments
 (0)