#34393: A filter query returns more items than the original queryset provides
after
applying INNER JOIN
-------------------------------------+-------------------------------------
Reporter: Ľuboš Mjachky | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: filter query | Triage Stage:
duplicate distinct | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
This is a [https://docs.djangoproject.com/en/stable/topics/db/queries
/#spanning-multi-valued-relationships documented] behavior. You can use
`Subquery()` to prevent duplicates.
--
Ticket URL: <https://code.djangoproject.com/ticket/34393#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/01070186c4c453cd-d1dbfb5e-f765-4db9-b999-e1b34309a499-000000%40eu-central-1.amazonses.com.