title: Django queryset dynamic filtering
body: <p>I have a query that looks like this:</p>
  
  <pre><code>cls.objects.filter(name__in=lookup_values).values():
  </code></pre>
  
  <p>The problem is that sometimes I want to filter by <code>name</code> but other times I want to filter by, say, <code>officer_number</code> or <code>customer_number</code>. Is there a way for me to dynamically set the <code>whatever__in</code> part of the query so it's not hard-coded?</p>