This week, I fixed ticket
#10516<http://code.djangoproject.com/ticket/10516> (Admin
search doesn't work when having multiple search_fields to the same base
model). In the process, I think I ran across a bug in the ORM.
It seems there is a case, given two querysets q1 and q2, with list(q1) =
[foo, ...] and list(q2) = [foo, ...], where q1 & q2 = []. I'm not sure if
it's a bug or not, because to reproduce it, I had to use
Model._default_manager.get_query_set(), but there might be some other way to
reproduce it (I don't actually know what the significance of
_default_manager is).

It's hard to explain what exactly the conditions are for the failure.
Basically, it's when you filter one of the QuerySets on one of the model's
foreign key's fields, but only when the model and the foreign key'd model
have the same base model.

I opened up a ticket and attached a failing test case.
http://code.djangoproject.com/ticket/10977

Zain

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to