>  orders = Order.objects.filter(
>    pk=42,
>    order_items__product='whiteboards'
>    )
>
> Is this not what you want?

We made a feeb attempt at that and gave up. Thanks! I will try it next.

The next question, if it works, will be how to values_list() a field
from a child record; it might follow that notation.

Could I trouble you for its home page? Googling for [django queryset
join] gives zillions of newbs trying simple queries...

-- 
  Phlip
  http://c2.com/cgi/wiki?ZeekLand

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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