Help, strange problem with 'getlist'

21 views
Skip to first unread message

Weikang Meng

unread,
Aug 18, 2014, 12:35:45 PM8/18/14
to django...@googlegroups.com
I got problem with django request.POST.getlist('data'). In template, There are multiple <input name="data"> tags, and I use getlist in view.py to get the list.
everything was fine in my develop environment and I got a list. But when it got deploy on server, (code same), I only get the last element instead of the whole list. 
Why? The post data (F12 - Network) in browser is list with all data, but POST.getlist() just a list contains the last element in views.py How did this happen?
Reply all
Reply to author
Forward
0 new messages