sdi/views.py
branchanoop
changeset 112 3cf5f668fca5
parent 111 45f844723b7a
child 113 b0c34801022a
equal deleted inserted replaced
111:45f844723b7a 112:3cf5f668fca5
   136 
   136 
   137     user_choices = list(attending_ppl) + list(not_confirmed_ppl)
   137     user_choices = list(attending_ppl) + list(not_confirmed_ppl)
   138     form = UserSelectForm(user_choices, request.POST)
   138     form = UserSelectForm(user_choices, request.POST)
   139 
   139 
   140     if request.method == "POST" and form.is_valid():
   140     if request.method == "POST" and form.is_valid():
   141         pass
   141         selected_users = form.cleaned_data['selected_users']
       
   142         return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users})
   142     else:
   143     else:
   143         return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, 
   144         return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, 
   144                                                 "not_confirmed":not_confirmed_ppl,
   145                                                 "not_confirmed":not_confirmed_ppl,
   145                                                 "not_selected":not_selected_ppl,
   146                                                 "not_selected":not_selected_ppl,
   146                                                })
   147                                                })