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

I have googled around and found only Order.extra(), which neglects the
has-many relationship, then forces you to verbosely restate it.

I'm going with raw SQL; this post is just to make sure nothing has
arisen very recently, or if I overlooked something obvious...

--
  Phlip
  http://bit.ly/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