#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:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  exclude manytomany   |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Chris):

 It would be welcome if both indeed worked in the same way.

 Also, I think this difference from `filter()` should also be mentioned in
 the documentation for `exclude()` directly, i.e. in
 
[https://docs.djangoproject.com/en/6.0/ref/models/querysets/#django.db.models.query.QuerySet.exclude].

 Not necessarily any full explanation, maybe just a sentence saying
 literally "Note that in some cases the lookup parameters are applied
 differently for `exclude()` than for `filter()`, see <the link from
 comment:26>."
-- 
Ticket URL: <https://code.djangoproject.com/ticket/14645#comment:28>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019c4c67e9a3-e9c357b3-324b-4542-8a5f-9c30bf5f8cb3-000000%40eu-central-1.amazonses.com.

Reply via email to