DEV Community

eddieishere
eddieishere

Posted on

Change query string to allow for multiple values

Can anyone help with my Stack question? Having a problem with my Django search. I'm using a multi select (Select2) on the front-end and when multiple values are selected it's only the last value that's searched. e.g ?Query=value1&Query=Value2.

The desired result would be Query=value1+Query=Value2 or
?Query=value1+Value2.

Any help appreciated!

I have an issue with my query string, the problem is when multiple values are selected my Django search breaks. I get this in the URL ?Query=value1&Query=Value2. In this scenario, it's only the last value that is searched. What I want to happen is that both values are searched…

Top comments (0)