Django models - how to filter out duplicate values by PK after the fact?
If the order doesn't matter, use a dict.
I build a list of Django model objects by making several queries. Then I want to remove any duplicates, (all of these objects are of the same type with an auto_increment int PK), but I can't use set() because they aren't hashable. 
Is there a quick and easy way to do this? I'm considering using a dict instead of a list with the id as the key.