Hi, qs1 and qs2 are 2 combinable query sets.
qs1 & qs2 resutls in qs2 (the larger set) where it should give the intersection, and qs2 & qs1 raises KeyError. And here are the details: The query representing qs1 is: SELECT "notes_note"."id", "notes_note"."title", "notes_note"."slug", "notes_note"."note", "notes_note"."tags", "notes_note"."location", "notes_note"."allow_comments", "notes_note"."user_id", "notes_note"."added", "notes_note"."modified" FROM "notes_note" , "favorites_favorite" WHERE "favorites_favorite".content_type_id = 22 AND "favorites_favorite".user_id = 30006 AND "notes_note"."id" = "favorites_favorite".object_id The query representing qs2 is: SELECT "notes_note"."id", "notes_note"."title", "notes_note"."slug", "notes_note"."note", "notes_note"."tags", "notes_note"."location", "notes_note"."allow_comments", "notes_note"."user_id", "notes_note"."added", "notes_note"."modified" FROM "notes_note" WHERE NOT ("notes_note"."title" IS NULL) The query representing (qs1 & qs2) is equivalent to the one of qs2, which is the larger query set. When the order is reversed (qs2 & qs1), results in "KeyError: 'favorites_favorite'" Any ideas? Thanks, omat --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---