I have the following columns as name and tag in the Content table.
From the following django query is there any way to find the tag named column has None values in it without using the for loop without using the .exclude()
newobj = Content.objects.filter(name="Harry")
boolval = if tag has or not not None value
Yes, use __isnull[0]
[0] https://docs.djangoproject.com/en/dev/ref/models/querysets/#isnull
Expanding on this:
.filter() returns a queryset.
This will return true/false (by exists) if there is Harry with null tags.