New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued relationships. #15022
Conversation
faef068
to
e4855be
Compare
After Adam's response on mailing list that we should be sure to add tips for users upgrading, maybe we could document the new behavior in get_search_results() and add a code snippet for achieving the old way of filtering. And then point to this from release notes. EDIT: I'm less sanguine on this after trying to write an example code block. Most of |
e4855be
to
0058864
Compare
@jacobtylerwalls Please rebase after 948d6d8. |
0058864
to
3577b30
Compare
3577b30
to
c0ea58d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacobtylerwalls Thanks 👍 Personally, I'm in favor, just wondering how to increase visibility of this change. I'm pretty sure that affected user will not notice it until it's too late 😞 . A separate section in the release notes and extra annotation in ModelAdmin.search_fields
docs should be a good start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jacobtylerwalls — thanks for this!
I just had a comment on the docs changes… Let me know your thoughts.
(Once we're happy, I'd apply similar throughout; I think for the 4.1.txt
block, the final the old way caused too many joins is OK.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacobtylerwalls I quite like that, thank you. Let's see what @felixxm says.
🥇
…ti-valued relationships. This reduces the likelihood of admin searches issuing queries with excessive joins.
Thanks both 🚀 |
acf4658
to
76ccce6
Compare
ticket-16063
mailing list thread
Reduces the likelihood of admin searches issuing queries with excessive joins.