title: How to get objects who have votes from model in Django?
body: <p>I'm creating a system to rating comments of a video for example like youtube that you can vote 'like or dislike' (1,0 with a BooleanField) for comments and these will appear at the top if the count of likes is the bigger, I know how to get the comments of a video and show them, but my problem is when I try to get the comments with the votes for each one:</p>
  
  <p>I have these models:</p>
  
  <pre><code>class Video(models.Model):
      name = models.CharField()
      #and more things
  
  class Comment(models.Model):
      text = models.TextField(max_length=250)
      video = models.ForeignKey(Video)
      user = models.ForeignKey(User)
  
  class RatingComment(model.Model):
      comment = models.ForeignKey(Comment)
      user = models.ForeignKey(User)
      vote = models.BooleanField()
  </code></pre>
  
  <p>So in my views, I can get the comments of a video with:</p>
  
  <p>res = Video.objects.get(alias__exact=something)</p>
  
  <p>coms = Comment.objects.filter(video=res)</p>
  
  <p>Then I make a render_to_response to the template with this values. But I need to get the comments with the count of like and dislikes.</p>
  
  <p>¿How can I create that?</p>