title: Django - filtering by "certain value or None"
body: <p>I have a field in an data object that can be either null or set to some integer. I want, given an integer, to filter all the objects with that integer value OR none:</p>
  
  <pre><code>MyElements.objects.all().filter(value__in=[myInt, None])
  </code></pre>
  
  <p>However, this line does not work for elements with null value. More precisely:</p>
  
  <pre><code>MyElements.objects.all().filter(value__in=[None])
  </code></pre>
  
  <p>returns nothing. whereas</p>
  
  <pre><code>MyElements.objects.all().filter(value = None)
  </code></pre>
  
  <p>returns the null-valued elements.</p>
  
  <p>How can I rewrite the original query (which involves myInt) correctly?</p>