>>> ContentType.objects.filter((Q(app_label__exact='aiyo') & 
>>> Q(model__exact='content')) | (Q(app_label__exact='aiyo') & 
>>> Q(model__exact='product')))
[<ContentType: Content>, <ContentType: Product>]
>>> c.queries [{'time': '0.000', 'sql': 'SELECT 
>>> "django_content_type"."id","django_content_type"."name","django_content_type"."app_label","django_content_type"."model"
>>>  FROM "django_content_type" WHERE ((("django_content_type"."app_label" = 
>>> aiyo AND "django_content_type"."model" = content) OR 
>>> ("django_content_type"."app_label" = aiyo AND "django_content_type"."model" 
>>> = product))) ORDER BY "django_content_type"."name" ASC'}]
>>>

wow! that works, perfect! big thanks to Scott, you've been a great
help!

Regards,

- eric


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