sdi/views.py
branchanoop
changeset 113 b0c34801022a
parent 112 3cf5f668fca5
child 114 aa5c29984e84
equal deleted inserted replaced
112:3cf5f668fca5 113:b0c34801022a
   132 
   132 
   133     attending_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="3")
   133     attending_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="3")
   134     not_confirmed_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="2")
   134     not_confirmed_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="2")
   135     not_selected_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="1")
   135     not_selected_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="1")
   136 
   136 
   137     user_choices = list(attending_ppl) + list(not_confirmed_ppl)
   137     user_choices = list(not_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         selected_users = form.cleaned_data['selected_users']
   141         selected_users = form.cleaned_data['selected_users']
   142         return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users})
   142         return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users})