Skip to content

Commit aac3497

Browse files
committed
Fix include and highlight intervals
1 parent cfa3541 commit aac3497

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/advanced/self-referential.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ Finally, as with regular (i.e. non-self-referential) foreign key relationships,
4242

4343
Now let us see how we can create villains with a boss:
4444

45-
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:49] hl[34-35] *}
45+
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:49] hl[34:35] *}
4646

4747
Just as with regular relationships, we can simply pass our boss villain as an argument to the constructor with `boss=thinnus`.
4848

4949
If we only learn that a villain actually had a secret boss after we have already created him, we can just as easily assign him that boss retroactively:
5050

51-
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:31,51-55] hl[52] *}
51+
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:31,51:55] hl[52] *}
5252

5353
And if we want to add minions to a boss after the fact, this is as easy as adding items to a Python list (because that's all it is 🤓):
5454

55-
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:31,57-68] hl[61] *}
55+
{* ./docs_src/advanced/self_referential/tutorial001.py ln[30:31,57:68] hl[61] *}
5656

5757
Since our relationships work both ways, we don't even need to add all our `clone_bot_`s to the session individually. Instead we can simply add `ultra_bot` once again and commit the changes. We do need to refresh them all individually though, if we want to get their updated attributes.
5858

0 commit comments

Comments
 (0)