retrieving list items from request.POST in django/python


Question

In my request.POST i am getting a query dictionary , one of the items in this dictionary is a list with multiple items (pass_id) eg.

I want to retrieve each of the values in pass_id and store in a new list. Can you suggest the code for this?

1
30
3/2/2016 9:29:30 PM

Accepted Answer

66
3/25/2011 9:17:57 AM

Try following django >1.4 and use

request.POST.dict()

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon