how to remove white space from field and then filter with isnull in django orm query code example Example: django is null MyModel.objects.filter(field__isnull = False)