File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
docs/tutorial/relationship-attributes Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,7 @@ and a couple of extra bits of info in our **SQLModel** relationship definition a
2929Let's define a ` winter_team ` and ` summer_team ` relationship for our heros. They can be on different
3030winter 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
4834The ` sa_relationship_kwargs={"primaryjoin": ...} ` is a new bit of info we need for ** SQLAlchemy** to
4935figure out which SQL join we should use depending on which attribute is in our query.
You can’t perform that action at this time.
0 commit comments