do filter in django with blank filter code example
Example 1: django is null
MyModel.objects.filter(field__isnull = False)
Example 2: how to add condition if null value in django orm
Name.objects.exclude(alias__isnull=True).exclude(alias__exact='')