#16609: Admin searches produce duplicate results if search_fields contains M2M
traversals
-------------------------------------+-------------------------------------
Reporter: cheater00@… | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed
Keywords: search_fields m2m | Triage Stage: Accepted
duplicate duplicates |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"d084176cc1273d5faf6f88eedb4c490e961f3a68" d084176c]:
{{{
#!CommitTicketReference repository=""
revision="d084176cc1273d5faf6f88eedb4c490e961f3a68"
Fixed #16609 -- Fixed duplicate admin results when searching nested M2M
relations.
This was fixed earlier but only when the M2M relation was at the first
level on the object. This commit fixes the issue even when the M2M is
at deeper levels, such as behind a foreign key.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16609#comment:14>
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/077.d0847d82d3de8a9240a088f397732975%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.