I sometimes have the need to make sure some instances are excluded from a queryset. This is the way I do it usually:
unwanted_instance = MyModel.object
you can use "~" with Q Lookup
for example, the following query will get all tickets from ticket model, except TKT_STATUS field that marked as a "solved" status :
from django.db.models import Q queryset_list = ticket.objects.filter(~Q(TKT_STATUS__iexact="solved"))