title: Django filtering twice nested instances
body: <p>Here is an example of my models:</p>
  
  <pre><code>class Section(models.Model):
     name = models.CharField(max_length=255)
  
  
  class Album(models.Model):
     name = models.CharField(max_length=255)
     model1 = models.ManyToManyField(Section, on_delete=models.CASCADE,
   related_name='model2')
  
  
  
  class Image(models.Model):
     name = models.CharField(max_length=255)
     active = models.BooleanField(default=True)
     model2 = models.ManyToManyField(Album, on_delete=models.CASCADE,
  related_name='model3')
  </code></pre>
  
  <p>I am trying to find all sections which have albums which have images who has active field = False</p>
  
  <pre><code>Section.object.filter(albums__images__active=False)
  </code></pre>
  
  <p>But I am getting all images even if their field active=True</p>