Skip to content

Commit 51bfe80

Browse files
committed
Be more explicit about next steps with QuerySet
When I was reading through the tutorial, I got to this section and read ``` The last missing part is passing the `posts` QuerySet to the template context. Don't worry – we will cover how to display it in a later chapter. ``` On a first read, this confused me -- I thought in both sentences we were talking about the same action (passing `posts` into the `render` call and displaying it in the template); making it additionally confusing that we were doing _some_ work in this chapter about passing in posts. I wondered whether the "next chapter" sentence was even necessary, and found this in the commit logs: 8db3c91. Noting that the ordering of the sentences had confused participants, and they apparently wanted to hear that they were going to cover displaying `posts` before an explanation of what `posts` was, I'm inferring that they have an intuition that this is missing and want to hear what the next steps are. So I tried to break up that sentence into two clearly separate steps, explaining what we'll do next and what we'll do later.
1 parent c212a42 commit 51bfe80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

en/dynamic_data_in_templates/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def post_list(request):
5252
return render(request, 'blog/post_list.html', {})
5353
```
5454

55-
The last missing part is passing the `posts` QuerySet to the template context. Don't worry – we will cover how to display it in a later chapter.
55+
To display our QuerySet on our blog's post list, we have two things left to do:
56+
1. Pass the `posts` QuerySet to the template context, by changing the `render` function call. We'll do this now.
57+
2. Modify the template to display the `posts` QuerySet. We'll cover this in a later chapter.
5658

5759
Please note that we create a *variable* for our QuerySet: `posts`. Treat this as the name of our QuerySet. From now on we can refer to it by this name.
5860

0 commit comments

Comments
 (0)