On Aug 11, 2:28 am, Phlip <[email protected]> wrote:
> >  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...

http://docs.djangoproject.com/en/1.2/topics/db/queries/#lookups-that-span-relationships

--
DR.

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