Skip to content Skip to sidebar Skip to footer

How To Get Multiple Results Using Same Query Params Django

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 re

Solution 1:

What you want is the getlist() function of the QueryDict.

request.GET.getlist('myvar')

Post a Comment for "How To Get Multiple Results Using Same Query Params Django"