Skip to content

Commit b32e8d0

Browse files
authored
Merge pull request DjangoGirls#1636 from lindboe/queryset-display-later-chapter
Be more explicit about next steps with QuerySet
2 parents dd01eeb + 51bfe80 commit b32e8d0

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)