-
Notifications
You must be signed in to change notification settings - Fork 64
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
Better Handling of Multiple Lookup Fields #57
Comments
0.7 is focusing on client side changes (and there a lot) so this is getting bumped. Original Comment By: Mark Lavin |
This seems like a good candidate for the next set of features. Original Comment By: Mark Lavin |
Ah yes, shlex.split looks like it will make the search even more useful. Original Comment By: Simeon Walker |
Thanks @simbloke! This looks pretty good. I might change this to use Original Comment By: Mark Lavin |
I recently came across this whilst using selectable to so a person lookup. I solved it by using the basic query from grappelli, see attachment. Original Comment By: Simeon Walker |
Are there a documentation to handling of multiple lookup fields? |
With support for multiple lookup fields there are some improvements that could probably be made in the ModelLookup. For instance if you are looking up a User based on first name and last name and search "John Doe" you won't find them because it searches for users with the first name "John Doe" or last name "John Doe" which is clearly not the desired behavior. How to tokenize the search term (in this case we want it by spaces) and how to combine the terms (OR vs AND) will likely need to be configurable.
The text was updated successfully, but these errors were encountered: