#14645: Exclude query with multiple conditions for the same multi-value relation
not correct
-------------------------------------+-------------------------------------
     Reporter:  Ben Buchwald         |                    Owner:  nobody
  <bb2@…>                            |
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  exclude manytomany   |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by akaariai):

 I think it is time to start working on this. I think we have two major
 bugs in Django ORM:
   1. This one.
   2. Aggregation over multiple different multivalued relations, or
 aggregation after filtering over m2m relation produces wrong results.

 In addition, we have the problem that filtering over multivalued relation
 doesn't use a subquery, instead you have to use distinct.

 These all are mixed together. Unfortunately this isn't easy to fix. But
 that doesn't mean we shouldn't try.

--
Ticket URL: <https://code.djangoproject.com/ticket/14645#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/094.70611bee2dcaf4ab59d957d66547e9e9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to