Is there any way to negate a queryset? Let's supose i have this queryset: User.objects.filter(first_name='vinicius')
and I want to have the queryset with the objects that is not in first queryset. I know I can do this: User.objects.exclude(first_name='vinicius') But we have cases where we don't know what is the queryset, we only knows that we want to get the elements that isn't in it, like this: queryset.negate() It's good to keep the chainable property of querysets. ______________________ VinÃcius Mendes Solucione Sistemas http://solucione.info/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.