Re: filter by if object exists

2007-07-27 Thread [EMAIL PROTECTED]
Thanks. I knew it was simple, and I'd seen it before, but couldn't remember or find it. On Jul 27, 9:33 am, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > > I just know this is a dumb question, and I've seen this done > > somewhere, but what I'm after is something like > > >

Re: filter by if object exists

2007-07-27 Thread Jonathan Buchanan
> I just know this is a dumb question, and I've seen this done > somewhere, but what I'm after is something like > > GpUser.objects.filter('image'=True) > > To only get the Gpuser objects that actually have an image, rather > than all of them. Can someone point me in the right direction?

filter by if object exists

2007-07-27 Thread [EMAIL PROTECTED]
I just know this is a dumb question, and I've seen this done somewhere, but what I'm after is something like GpUser.objects.filter('image'=True) To only get the Gpuser objects that actually have an image, rather than all of them. Can someone point me in the right direction?