Answer the question
In order to leave comments, you need to log in
How to get normal dictionary from QueryDict?
The following data is sent from the front in js ajax:
{
'cart': [
{
'id': 1,
'count': 2
}
]
}
{'cart[0][count]': ['2'], 'cart[0][id]': ['1']}
Answer the question
In order to leave comments, you need to log in
No longer relevant - figured it out. The problem was in the front (the data went not in json, but in form-urlencoded).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question