29👍
✅
I don’t know how to do that with Forms, but if you want to grab the values in the raw way, here’s how I’d do:
relations = request.POST.getlist('relations')
5👍
You don’t need to grab all the raw values, you can just get the specific data by using element name like this:
relations = request.form.getlist('relations')
That will return a list of values in the relations
input.
- Django – taking values from POST request, JavaScript fetch API
- Heroku Django DEBUG Setting not applied
- South: run a migration for a column that is both unique and not null
- Heroku logs for Django projects missing errors
- Django: how to change the choices of AdminTimeWidget
Source:stackexchange.com