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
>
> > 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?
>
> GpUser.objects.filter(image__isnull=False)
>
> Seehttp://www.djangoproject.com/documentation/db-api/#isnull
>
> Jonathan.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to