๐ Bug HuntDJ Django Hardโก+35 XP
N+1 Query
This view runs 1 + N queries for N posts.
๐ Find the bug
1
posts = Post.objects.all()2
for post in posts:3
print(post.author.name)๐ The bug is on line 1