Closed gitgithan closed 2 years ago
Whoops! That's indeed a mistake on my part!
You're right the correct way would be:
detail=f"Post {comment.id} does not exist"
I'll fix this right away and coordinate a fix with Packt!
Thank you for your help 🙏
I found this happening in 2 places by searching
detail=f"Post
in vscode.On the front-end, the interpolated string looks like it's printing some information about a function instead of the post id. I guess the python built-in
id
was used when it should becomment.post_id
?