#2361: QuerySet.filter(m2mfield__isnull=False) may return duplicates
-------------------------------------+-------------------------------------
Reporter: daniel.tietze@… | Owner: adrian
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):
* stage: Unreviewed => Accepted
* type: defect => Bug
Comment:
I'm not positive this can be fixed and shouldn't just be solved by using
`.distinct()` but if that's the case, maybe the documentation could be
clarified.
I'm attaching a test which currently passes but demonstrates that
duplicates are returned in the results.
--
Ticket URL: <https://code.djangoproject.com/ticket/2361#comment:5>
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/081.c9758772d36ababc29bfc2af703d5e29%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.