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)
How to get the difference of two querysets in Django