Two tables: post and rating.
rating contains column - post (FK) that is post table's primary ID. I'm trying to filter table rating by columns user and ratingtype to get post (FK) value that I could use to filter post table by.
Post.objects.filter(pk__in=Rating.objects.get(post=post).filter(Rating.objects.filter(user = self.request.user, ratingtype='like')))