Q Model in Django
What is this article about?
The Q model in django is used to apply some operation on particular condition.
Applies for the whole Table.
We have to import before using Q model in django.
It should be the first argument in filter.
from django.db.models import Q
ex: – TableName.objects.filter(~Q(column_name=None)
It will return data without None