title: How to do a filter with a queryset result Django
body: <p>I was wondering if it is possible to filter a queryset result with a queryset object attribute.</p>
  
  <p>Example:</p>
  
  <pre><code>clients = Client.objects.filter(name__contains=search)
  </code></pre>
  
  <p>This should return several objects</p>
  
  <pre><code>result = Invoice.objects.filter(client_id=clients.id)
  </code></pre>
  
  <p>Now I want all the data inside Invoice that corresponds to the clients.id found.</p>
  
  <p>What is the most optimized way to do it? Since Django is a powerful framework, I was wondering if it has a good and fast way to do it without me having to add the primary result to a list and do a for loop.</p>