django orm query filter none code example Example: django is null MyModel.objects.filter(field__isnull = False)