On di, 2009-10-20 at 16:09 +0200, Michael P. Jung wrote: > Besides exclude(x=None).exclude(y=None).exclude(z=None) feels less > intuitive to me than filter(x__neq=None, y__neq=None, y__neq=None).
That's what Q objects are for: .filter(~Q(x=None),~Q(y=None),~Q(z=None)) or: .filter(~(Q(x=None)|Q(y=None)|Q(z=none)) -- Dennis K. The universe tends towards maximum irony. Don't push it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---