write function in model to filter null values in django and called from view for admin code example Example: django is null MyModel.objects.filter(field__isnull = False)