title: Django queryset filter on boolean not working
body: <p>I have a model:</p>
  
  <pre><code>class mymodel(models.Model):
      order_closed = models.BooleanField(default=False)
  </code></pre>
  
  <p>I added this field to my development mysqllite db manually since its a new field for a model/table that already existed. I then tried:</p>
  
  <pre><code>mymodel.objects.filter(order_closed=False) #and with True
  </code></pre>
  
  <p>and its producing incorrect or unpredictable results. I saw some mention that is could be a sqllite thing but I'm not sure? The templates seem to understand whether its a true or false value but python code doesn't. To clarify with some examples:</p>
  
  <p>{{mymodel.order_closed}} will print 0 after I set the default to 0 in sqllite. but using .filter(order_closed=value) will still return every record.</p>