问题
Is there a way to get two results from using the same query params in django. I find the second value overwrites the first
For example:
http://localhost:8000/?id=3&id=4
the result returns the value with id=4
but i want result for id=3
and id=4
回答1:
What you want is the getlist() function of the QueryDict.
request.GET.getlist('myvar')
来源:https://stackoverflow.com/questions/42914751/how-to-get-multiple-results-using-same-query-params-django