Re: exclude on two querysets

2007-10-29 Thread Doug B
You might be able to do something like: qs_big.exclude(pk__in=[o.id for o in qs_small]) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

exclude on two querysets

2007-10-29 Thread cesco
Hi, I have two querysets: qs_big and qs_small with qs_small subset of qs_big (that is, all the objects in qs_small are also objects of qs_big). I'd like to obtain a queryset of objects which are in qs_big but not in qs_small. If exclude could accept a queryset as parameter I would do something li