Skip to content

Commit d514df2

Browse files
committed
Doocs: fix highlighting
1 parent dfdaf23 commit d514df2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/tutorial/relationship-attributes/multiple-relationships-same-model.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If the foreign table search criteria (address.zipcode) is not unique, prefer EXI
6969
Let's define a `winter_team` and `summer_team` relationship for our heros. They can be on different
7070
winter and summer teams or on the same team for both seasons.
7171

72-
{* ./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001_py310.py ln[13:26] hl[11,15] *}
72+
{* ./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001_py310.py ln[13:26] hl[9,13] *}
7373

7474
The `sa_relationship_kwargs={"foreign_keys": ...}` is a new bit of info we need for **SQLAlchemy** to
7575
figure out which SQL join we should use depending on which attribute is in our query.
@@ -116,7 +116,7 @@ and a couple of extra bits of info in our **SQLModel** join statements.
116116
```Python hl_lines="2"
117117
# Code above omitted 👆
118118

119-
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:70-71]!}
119+
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:69-71]!}
120120

121121
# Code below omitted 👇
122122
```
@@ -128,7 +128,7 @@ Query Heros filtering by Team attributes by manually specifying the `join` with
128128
```Python hl_lines="7"
129129
# Code above omitted 👆
130130

131-
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:70-89]!}
131+
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:69-89]!}
132132

133133
# Code below omitted 👇
134134
```
@@ -152,10 +152,10 @@ For more information see [SQLAlchemy: Handling Multiple Join Paths](https://docs
152152

153153
From a query perspecitve, this is a much simpler solution. We use the `has` function in the query:
154154

155-
```Python hl_lines="5"
155+
```Python hl_lines="4 5"
156156
# Code above omitted 👆
157157

158-
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:91-119]!}
158+
{!./docs_src/tutorial/relationship_attributes/multiple_relationships_same_model/tutorial001.py[ln:93-123]!}
159159

160160
# Code below omitted 👇
161161
```

0 commit comments

Comments
 (0)