#34440: AND operator on queryset with joins gives wrong results
-------------------------------------+-------------------------------------
Reporter: Guillaume LEBRETON | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: orm and operato | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Sanders):
Hi,
Yes 2 querysets joined with the & operator are effectively chained
together. Whilst I can see that it can be misleading in this case the
linked example shown isn't technically "wrong", though I'd recommend that
the docs be updated here to avoid confusion.
If you'd like to propose that there be some way to join querysets in the
way you'd like I'd encourage you to start a discussion on the Django
developer's mailing list: DevelopersMailingList.
--
Ticket URL: <https://code.djangoproject.com/ticket/34440#comment:1>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/0107018726a62f87-d2d72dda-ddf0-4ab6-895a-e846c01ce01c-000000%40eu-central-1.amazonses.com.