On Thu, Apr 14, 2011 at 11:46 AM, Massimiliano della Rovere <massimiliano.dellarov...@gmail.com> wrote: > what about Parent.objects.filter(~q) ?
In [16]: f1 = Parent.objects.filter(~q) In [17]: print f1.query SELECT "molserv_parent"."id", "molserv_parent"."name" FROM "molserv_parent" WHERE NOT ("molserv_parent"."id" IN (SELECT U1."parent_id" FROM "molserv_child" U1 WHERE (U1."gender" = f AND U1."parent_id" IS NOT NULL))) -- Gianluca Sforna http://morefedora.blogspot.com http://identi.ca/giallu - http://twitter.com/giallu -- 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@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.