I have an object variable obj. Is it possible to check whether its a Queryset or not?
obj
You can use python built-in function isinstance.
from django.db.models.query import QuerySet isinstance(your_qs, QuerySet)