title: Dummy filters in Django
body: <p>How do I make a dummy filter query in Django (a filter that is always matched) and an exclude query that is never matched.  The reason is because I have cases where my query is None, and in those cases I want to use a dummy filter.  This is the code:</p>
  
  <pre><code>MyModel.objects.filter(filterQuery).exclude(excludeQuery)
  </code></pre>
  
  <p>In cases where <code>filterQuery</code> or <code>excludeQuery</code> is <code>None</code> I get an error, so I want to add the following conditional before that query:</p>
  
  <pre><code>if filterQuery == None: filterQuery = ???
  if excludeQuery == None: excludeQuery = ???
  MyModel.objects.filter(filterQuery).exclude(excludeQuery)
  </code></pre>