I have to querysets. alllists and subscriptionlists
alllists = List.objects.filter(datamode = \'A\')
subscriptionlists = Membership.objects.filter(member__id
Well I see two options here.
diff = []
for all in alllists:
found = False
for sub in subscriptionlists:
if sub.id == all.id:
found = True
break
if not found:
diff.append(all)
diff = List.objects.filter(datamode = 'A').exclude(member__id=memberid, datamode='A')