Skip to content

Commit fe0187c

Browse files
Update docs/tutorial/relationship-attributes/aliased-relationships.md
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
1 parent 870dc4c commit fe0187c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

docs/tutorial/relationship-attributes/aliased-relationships.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,7 @@ and a couple of extra bits of info in our **SQLModel** relationship definition a
2929
Let's define a `winter_team` and `summer_team` relationship for our heros. They can be on different
3030
winter and summer teams or on the same team for both seasons.
3131

32-
```Python hl_lines="11 15"
33-
# Code above omitted 👆
34-
35-
{!./docs_src/tutorial/relationship_attributes/aliased_relationship/tutorial001.py[ln:13-26]!}
36-
37-
# Code below omitted 👇
38-
```
39-
40-
/// details | 👀 Full file preview
41-
42-
```Python
43-
{!./docs_src/tutorial/relationship_attributes/aliased_relationship/tutorial001.py!}
44-
```
45-
46-
///
32+
{* ./docs_src/tutorial/relationship_attributes/aliased_relationship/tutorial001_py310.py ln[13:26] hl[11,15] *}
4733

4834
The `sa_relationship_kwargs={"primaryjoin": ...}` is a new bit of info we need for **SQLAlchemy** to
4935
figure out which SQL join we should use depending on which attribute is in our query.

0 commit comments

Comments
 (0)