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

Posted in


Submitted by


Why trying to master digital Marketing, when LeadMirror with A2i can help you get there with ease?

Join Lead Mirror Today

Setting up your account takes less than a minute.