Is there a simple way for QuerySet addition and subtraction in django?

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-06-04T13:32:46Z Indexed on 2010/06/05 21:42 UTC
Read the original article Hit count: 222

Filed under:
|

Consider two QuerySet objects of the same class. Is there a simple way to unify them into a single QuerySet, similar to addition but without duplicates. Also, is there a simple way to subtract them? Removing all elements that appear in both sets from one of the sets?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-queryset