how to check an empty field in django model code example
Example: how to add condition if null value in django orm
Name.objects.exclude(alias__isnull=True).exclude(alias__exact='')
Name.objects.exclude(alias__isnull=True).exclude(alias__exact='')