How to get value from POST for an unspecified id

Hello!

I need to get the values (specifically always the second value) from request.POST.get without specifying an id. In fact, I would like to be able to read the id and then work with it.

Conceptually, instead of value = request.POST.get(‘id’), I would like to do
id = request.POST(1) or something like that.

This code isn’t working for me, I always get either a QueryDict or an error that ‘object is not subscriptable’. Could you point me in the right direction please? Or is this even possible?

Thank you in advance,
Kristyna

Form post data isn’t ordered. There are no guarantees that the browser is going to provide form fields within the request in any particular sequence.
That data is provided to you as a dict. You need to know the key of the dict you wish to retrieve.