[Fixed]-Making user post show on profile page

1👍

You want to filter based on author since that’s what is defined in your Post model, and you want to check against the currently logged in user.

Try making the following change

logged_in_user_posts = Post.objects.filter(author=logged_in_user)
👤NS0

Leave a comment