How to filter Django objects to accept matches and NULLs? <p>I have a model which has a <code>ForeignKey</code> field, with <code>null=True</code>.</p> <p>The field-semantics are that a NULL entry is permissive, while a non-NULL entry binds it to a single row in the foreign table.</p> <p>I want to build an ORM filter which corresponds to:</p> <pre><code>SELECT * FROM foo WHERE foo.fk_field = ? OR foo.fk_field IS NULL </code></pre> <p>(Where the question mark represents a single value in the foreign table.)</p> <p>Is it possible to do this in the Django ORM, so do I need to resort to a <code>raw</code> query?</p>