Skip to content

Commit d18294e

Browse files
committed
update docs
1 parent 893f8bd commit d18294e

File tree

1 file changed

+2
-66
lines changed

1 file changed

+2
-66
lines changed

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

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,7 @@ We will continue with the code we used to create some heroes, and we'll update t
3939

4040
/// details | 👀 Full file preview
4141

42-
//// tab | Python 3.10+
43-
44-
```Python
45-
{!./docs_src/tutorial/connect/insert/tutorial001_py310.py!}
46-
```
47-
48-
////
49-
50-
//// tab | Python 3.7+
51-
52-
```Python
53-
{!./docs_src/tutorial/connect/insert/tutorial001.py!}
54-
```
55-
56-
////
42+
{* ./docs_src/tutorial/connect/insert/tutorial001_py310.py *}
5743

5844
///
5945

@@ -63,57 +49,7 @@ Let's say that **Tommy Sharp** uses his "rich uncle" charms to recruit **Spider-
6349

6450
Doing it is just like updating any other field:
6551

66-
//// tab | Python 3.10+
67-
68-
```Python hl_lines="8"
69-
# Code above omitted 👆
70-
71-
{!./docs_src/tutorial/connect/update/tutorial001_py310.py[ln:29-30]!}
72-
73-
# Previous code here omitted 👈
74-
75-
{!./docs_src/tutorial/connect/update/tutorial001_py310.py[ln:60-64]!}
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/update/tutorial001.py[ln:31-32]!}
88-
89-
# Previous code here omitted 👈
90-
91-
{!./docs_src/tutorial/connect/update/tutorial001.py[ln:62-66]!}
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/update/tutorial001_py310.py!}
104-
```
105-
106-
////
107-
108-
//// tab | Python 3.7+
109-
110-
```Python
111-
{!./docs_src/tutorial/connect/update/tutorial001.py!}
112-
```
113-
114-
////
115-
116-
///
52+
{* ./docs_src/tutorial/connect/update/tutorial001_py310.py ln[29:30,60:64] hl[8] *}
11753

11854
We can simply **assign** a value to that field attribute `team_id`, then `add()` the hero to the session, and then `commit()`.
11955

0 commit comments

Comments
 (0)