On 08/10/10 18:39, Phlip wrote:
The point of a relational database is to distribute everything
into normalized tables, then perform set operations on
multiple tables.

Given an Order model with many order_items, other ORMs allow
me to query them like this (in a hypothetical notation):

Order.objects.filter(pk=42).join('order_items').filter(product='whiteboards')

Given that you don't actually include your models, it sounds like you're doing something like

  orders = Order.objects.filter(
    pk=42,
    order_items__product='whiteboards'
    )

Is this not what you want?

-tkc


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