Always False Q object
<p>In Django ORM, how does one go about creating a Q object that is always False?</p>

<p>This is similar to the question about <a href="https://stackoverflow.com/q/33517468/247696">always True Q objects</a>, but the other way round.</p>

<p>Note that this doesn't work:</p>

<pre><code>Foobar.objects.filter(~Q()) # returns a queryset which gives all objects
</code></pre>

<hr>

<p>Why do I want a Q object instead of the simple False value? So that I can combine it with other Q values, like this for example:</p>

<pre><code>condition = always_true_q_object
if something_or_other:
    condition = condition | foobar_that_returns_a_q_object()
if something_or_other2:
    condition = condition | foobar_that_returns_a_q_object2()
</code></pre>