$.post('{% url affiliate.views.manage_access %}', {
id_list: [1,2,3],
});
You can't just grab the value from the post like you normally would, since it will only grab one of the items. So this won't work:
def manage_access(request):
id_list = request.POST['id_list']
You must instead do this:
def manage_access(request):
id_list = request.POST.getlist('id_list[]')
No comments:
Post a Comment