1from django.http import HttpResponse
2
3def edit_lists(request):
4 tasks = request.POST.getlist('tasks[]')
5 return HttpResponse('Success')
1$('.btn-group').find('#mark_as_done').on('click', function() {
2 var tasks = grab_selected();
3
4 $.ajax({
5 type: 'POST',
6 url: '/edit_lists/',
7 data: {'tasks[]': tasks},
8 });
9});