Skip to content

Commit d59cb98

Browse files
ekohldas-g
andauthored
Update en/extend_your_application/README.md
Co-Authored-By: Raphael Das Gupta <raphael.das.gupta@hsr.ch>
1 parent 3798985 commit d59cb98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

en/extend_your_application/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Do you remember what the next step is? It's adding a view!
8181

8282
## Add a post's detail view
8383

84-
This time our *view* is given an extra parameter, `pk`. Our *view* needs to catch it, right? So we will define our function as `def post_detail(request, pk):`. Note that we need the parameter to have exactly the same name as the one we specified in `urls` (`pk`). Omitting this variable is incorrect and will result in an error!
84+
This time our *view* is given an extra parameter, `pk`. Our *view* needs to catch it, right? So we will define our function as `def post_detail(request, pk):`. Note that this parameter must have the exact same name as the one we specified in `urls` (`pk`). Also note that omitting this variable is incorrect and will result in an error!
8585

8686

8787
Now, we want to get one and only one blog post. To do this, we can use querysets, like this:

0 commit comments

Comments
 (0)