In a Django view you can access the request.GET[\'variablename\']
, so in your view you can do something like this:
myvar = request.GET[\'myvar\'
You want the getlist() function of the GET object:
request.GET.getlist('myvar')
Another solution is creating a copy of the request object... Normally, you can not iterate through a request.GET or request.POST object, but you can do such operations on the copy:
res_set = request.GET.copy()
for item in res_set['myvar']:
item
...