adding support for multiple values for search filter by MichalMazurek · Pull Request #3541 · encode/django-rest-framework (original) (raw)
This PR adds support for multiple search params, instead of just one.
/api/v1/model?search=first&search=last
With current master, this will create a query only for the last
parameter. You could add more params using space or ','. I think it's better to use the fact that we can specify more values for one param instead of using space or commas, especially when we would like to search using those characters.
I've left backward compatibility for just one parameter given to split across spaces or commas, but I would remove this out in the future.
What do you think guys?
All the best,
Michal