Hi Cathy,

Chris is right. User in entrystatus is a relation to User. This isnt't
the same as a 'normal' field like Name or Title. Look at these:

Entry.objects.filter(blog__id__exact=3) # Explicit form
Entry.objects.filter(blog__id=3) # __exact is implied
Entry.objects.filter(blog__pk=3) # __pk implies __id__exact

This are simple relations from one table to another.
Your filter is spanning three tables acualy
Entry.objects.filter(entrystatus__user=3)  << what about the user,
his/her name, his/her e-mail?

That's why you need to specify some extra argument like firstname,
name, etc or of course id or pk.

Thanks, I learned a lot myself by this question :-)

Rob


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