Given the model:
class MyModel(models.Model):
name = models.CharField(max_length=10)
model_num = models.IntegerField()
flag = models.NullBooleanField(default=False)
We can use Q objects to create AND , OR conditions in your lookup query. For example, say we want all objects that ...