Skip to content

Commit 933883f

Browse files
committed
Update docs/tutorial/relationship-attributes/remove-relationships.md
1 parent 893f8bd commit 933883f

File tree

1 file changed

+4
-116
lines changed

1 file changed

+4
-116
lines changed

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

Lines changed: 4 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -8,133 +8,21 @@ And then for some reason needs to leave the **Preventers** for some years. 😭
88

99
We can remove the relationship by setting it to `None`, the same as with the `team_id`, it also works with the new relationship attribute `.team`:
1010

11-
//// tab | Python 3.10+
12-
13-
```Python hl_lines="9"
14-
# Code above omitted 👆
15-
16-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py[ln:103-114]!}
17-
18-
# Code below omitted 👇
19-
```
20-
21-
////
22-
23-
//// tab | Python 3.9+
24-
25-
```Python hl_lines="9"
26-
# Code above omitted 👆
27-
28-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py39.py[ln:105-116]!}
29-
30-
# Code below omitted 👇
31-
```
32-
33-
////
34-
35-
//// tab | Python 3.7+
36-
37-
```Python hl_lines="9"
38-
# Code above omitted 👆
39-
40-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002.py[ln:105-116]!}
41-
42-
# Code below omitted 👇
43-
```
44-
45-
////
11+
{* ./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py ln[103-114] hl[9] *}
4612

4713
/// details | 👀 Full file preview
4814

49-
//// tab | Python 3.10+
50-
51-
```Python
52-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py!}
53-
```
54-
55-
////
56-
57-
//// tab | Python 3.9+
58-
59-
```Python
60-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py39.py!}
61-
```
62-
63-
////
64-
65-
//// tab | Python 3.7+
66-
67-
```Python
68-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002.py!}
69-
```
70-
71-
////
15+
{* ./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py *}
7216

7317
///
7418

7519
And of course, we should remember to add this `update_heroes()` function to `main()` so that it runs when we call this program from the command line:
7620

77-
//// tab | Python 3.10+
78-
79-
```Python hl_lines="7"
80-
# Code above omitted 👆
81-
82-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py[ln:117-121]!}
83-
84-
# Code below omitted 👇
85-
```
86-
87-
////
88-
89-
//// tab | Python 3.9+
90-
91-
```Python hl_lines="7"
92-
# Code above omitted 👆
93-
94-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py39.py[ln:119-123]!}
95-
96-
# Code below omitted 👇
97-
```
98-
99-
////
100-
101-
//// tab | Python 3.7+
102-
103-
```Python hl_lines="7"
104-
# Code above omitted 👆
105-
106-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002.py[ln:119-123]!}
107-
108-
# Code below omitted 👇
109-
```
110-
111-
////
21+
{* ./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py ln[117-121] *}
11222

11323
/// details | 👀 Full file preview
11424

115-
//// tab | Python 3.10+
116-
117-
```Python
118-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py!}
119-
```
120-
121-
////
122-
123-
//// tab | Python 3.9+
124-
125-
```Python
126-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py39.py!}
127-
```
128-
129-
////
130-
131-
//// tab | Python 3.7+
132-
133-
```Python
134-
{!./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002.py!}
135-
```
136-
137-
////
25+
{* ./docs_src/tutorial/relationship_attributes/read_relationships/tutorial002_py310.py *}
13826

13927
///
14028

0 commit comments

Comments
 (0)