File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -734,10 +734,10 @@ in the changes to _home.html_:
734
734
with the appropriate context variables passed in--a bit like
735
735
calling a function.
736
736
737
- // DAVID: You can omit these, the included template gets the context from its parent.
738
-
739
737
<3> The `scripts` block is just a straightforward `include`
740
738
with no variables.
739
+
740
+ // DAVID: You can omit the with=s, the included template gets the context from its parent.
741
741
742
742
Now let's see it in _list.html_:
743
743
@@ -854,16 +854,17 @@ which are going to filter their way down through the code:
854
854
855
855
<1> We want a variable called `owner` to represent the user in our template.
856
856
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
-
860
857
<2> We want to be able to iterate through the lists created by the user
861
858
using `owner.lists.all`
862
859
(I happen to know how to make this work with the Django ORM).
863
860
864
861
<3> We want to use `list.name` to print out the "name" of the list,
865
862
which is currently specified as the text of its first element.
866
863
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
+
867
868
NOTE: Outside-In TDD is sometimes called "programming by wishful thinking",footnote:[
868
869
The phrase "programming by wishful thinking" was first popularised by
869
870
the amazing, mind-expanding textbook
You can’t perform that action at this time.
0 commit comments