django – getlist()

jQuery POST’s arrays with the [] suffix because PHP and some web frameworks understand that convention, and re-build the array on the server-side for you automatically. Django doesn’t work that way, but you should be able to access the data via:

ukeys = request.POST.getlist('ukeys[]')

Leave a Comment