[Answer]-How to get all 'Post' objects where 'User' has replied?

1👍

If I am not mistaken, you can try:

posts = Post.objects.filter(postreply__owner=self.request.user, postreply__accepted=True)

More on Django documentation: Lookups that span relationships.

Side note: take care of the uniqueness of accepted post replies.

👤Wtower

Leave a comment