I'm using Django 1.0.2 and having some problems with Related Object
queries.

For example I have a model called Project with a ForeignKey to a
Django User.

class Project(models.Model):
   ...
    owner = models.ForeignKey(User)
  ...

by the documentation I would expect the following to give me a list of
all Users who are owners of projects but it does not.

User.objects.filter(project__owner__isnull=False)

Instead it's returning a queryset of all users.

Anyone have any insight into this?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to