Skip to content

Commit 46a9cb2

Browse files
committed
Fix callouts in 24
1 parent 0c807ca commit 46a9cb2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

chapter_24_outside_in.asciidoc

+6-5
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ in the changes to _home.html_:
734734
with the appropriate context variables passed in--a bit like
735735
calling a function.
736736

737-
// DAVID: You can omit these, the included template gets the context from its parent.
738-
739737
<3> The `scripts` block is just a straightforward `include`
740738
with no variables.
739+
740+
// DAVID: You can omit the with=s, the included template gets the context from its parent.
741741

742742
Now let's see it in _list.html_:
743743

@@ -854,16 +854,17 @@ which are going to filter their way down through the code:
854854

855855
<1> We want a variable called `owner` to represent the user in our template.
856856

857-
// DAVID: Would be good to say more about why we need the concept of owner,
858-
// distinct from user (which we already have).
859-
860857
<2> We want to be able to iterate through the lists created by the user
861858
using `owner.lists.all`
862859
(I happen to know how to make this work with the Django ORM).
863860

864861
<3> We want to use `list.name` to print out the "name" of the list,
865862
which is currently specified as the text of its first element.
866863

864+
// DAVID: Would be good to say more about why we need the concept of owner,
865+
// distinct from user (which we already have).
866+
867+
867868
NOTE: Outside-In TDD is sometimes called "programming by wishful thinking",footnote:[
868869
The phrase "programming by wishful thinking" was first popularised by
869870
the amazing, mind-expanding textbook

0 commit comments

Comments
 (0)