Skip to content

Commit c050b70

Browse files
committed
📝 Update includes for docs/tutorial/remove-data-connections.md
1 parent 893f8bd commit c050b70

File tree

1 file changed

+2
-70
lines changed

1 file changed

+2
-70
lines changed

docs/tutorial/connect/remove-data-connections.md

Lines changed: 2 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,7 @@ Let's see how to **remove** connections between rows in tables.
3535

3636
We will continue with the code from the previous chapter.
3737

38-
/// details | 👀 Full file preview
39-
40-
//// tab | Python 3.10+
41-
42-
```Python
43-
{!./docs_src/tutorial/connect/update/tutorial001_py310.py!}
44-
```
45-
46-
////
47-
48-
//// tab | Python 3.7+
49-
50-
```Python
51-
{!./docs_src/tutorial/connect/update/tutorial001.py!}
52-
```
53-
54-
////
55-
56-
///
38+
{* ./docs_src/tutorial/connect/update/tutorial001_py310.py *}
5739

5840
## Break a Connection
5941

@@ -63,57 +45,7 @@ Let's say **Spider-Boy** is tired of the lack of friendly neighbors and wants to
6345

6446
We can simply set the `team_id` to `None`, and now it doesn't have a connection with the team:
6547

66-
//// tab | Python 3.10+
67-
68-
```Python hl_lines="8"
69-
# Code above omitted 👆
70-
71-
{!./docs_src/tutorial/connect/delete/tutorial001_py310.py[ln:29-30]!}
72-
73-
# Previous code here omitted 👈
74-
75-
{!./docs_src/tutorial/connect/delete/tutorial001_py310.py[ln:66-70]!}
76-
77-
# Code below omitted 👇
78-
```
79-
80-
////
81-
82-
//// tab | Python 3.7+
83-
84-
```Python hl_lines="8"
85-
# Code above omitted 👆
86-
87-
{!./docs_src/tutorial/connect/delete/tutorial001.py[ln:31-32]!}
88-
89-
# Previous code here omitted 👈
90-
91-
{!./docs_src/tutorial/connect/delete/tutorial001.py[ln:68-72]!}
92-
93-
# Code below omitted 👇
94-
```
95-
96-
////
97-
98-
/// details | 👀 Full file preview
99-
100-
//// tab | Python 3.10+
101-
102-
```Python
103-
{!./docs_src/tutorial/connect/delete/tutorial001_py310.py!}
104-
```
105-
106-
////
107-
108-
//// tab | Python 3.7+
109-
110-
```Python
111-
{!./docs_src/tutorial/connect/delete/tutorial001.py!}
112-
```
113-
114-
////
115-
116-
///
48+
{* ./docs_src/tutorial/connect/delete/tutorial001_py310.py ln[29:30] hl[8] *}
11749

11850
Again, we just **assign** a value to that field attribute `team_id`, now the value is `None`, which means `NULL` in the database. Then we `add()` the hero to the session, and then `commit()`.
11951

0 commit comments

Comments
 (0)