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
Resolve #39 -- Make default search more like Django admin #43
Conversation
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
==========================================
- Coverage 99.57% 99.15% -0.42%
==========================================
Files 7 7
Lines 233 238 +5
==========================================
+ Hits 232 236 +4
- Misses 1 2 +1
Continue to review full report at Codecov.
|
Different to before we now match search terms only if all bits match or the entire statement. The last part differs from the behavior in Django admin, which does not inlcude exact machtes of the entire search term inlcude spaces. Partially revert 07054b2
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.
this actually fully reverts the change in 07054b2 , because also __startwith
queries are split.
But it will definitely have the same behaviour as the admin.
field_select |= Q(**{field: word}) | ||
|
||
select |= field_select | ||
use_distinct = False |
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.
IMHO a comment about the source of this block would be helpful, right?
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.
Dang, I didn't see this comment, sorry.
(the test failure feels like it's not related to this change, but flaky, but I didn't check) I did a short manual test on our systems |
Different to before we now match search terms only if all
bits match or the entire statement. The last part differs
from the behavior in Django admin, which does not inlcude
exact machtes of the entire search term inlcude spaces.
Partially revert 07054b2