I have to querysets. alllists and subscriptionlists
alllists = List.objects.filter(datamode = \'A\') subscriptionlists = Membership.objects.filter(member__id
You should be able to use the set operation difference to help:
set(alllists).difference(set(subscriptionlists))