> How can I retrieve all objects that are *not* in that list? > > Something like "Model.objects.filter(id__not_in = processed_ids)". > Unlike filter(id__in=...) which works just fine the __not_in modifier > apparently isn't understood by django.
As commented recently on the list, you want "filter()"'s evil twin "exclude()": exclude(id_in=...) http://www.djangoproject.com/documentation/db-api/#exclude-kwargs -tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

