On 6/24/06, Scott Anderson <[EMAIL PROTECTED]> wrote:
> ContentType.objects.filter(
>    (Q(app_label__exact='aiyo') & Q(model__exact='content')) |
>    (Q(app_label__exact='aiyo') & Q(model__exact='product'))
>    )

Also keep in mind that as a query gets more and more complex, the odds
of any ORM syntax being able to express it cleanly and concisely get
smaller and smaller; there will be times when it'll be faster and
easier (well, easier so long as you know SQL) to drop down into SQL to
execute exactly the query you want.


-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

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

Reply via email to