[Django]-Making a query for all objects that don't have `None` for a certain field

5👍

Chair.objects.filter(datetime__isnull=False)

It’s interesting you mention negating the Q object – people usually learn the other way around 🙂

Leave a comment