137 user_choices = list(not_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 for user in selected_users: |
|
143 user_info = user.registrantinto.all()[0] |
|
144 user_info.status_of_attending_sagedays = "2" |
|
145 user_info.save() |
|
146 |
142 return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users}) |
147 return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users}) |
143 else: |
148 else: |
144 return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
149 return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
145 "not_confirmed":not_confirmed_ppl, |
150 "not_confirmed":not_confirmed_ppl, |
146 "not_selected":not_selected_ppl, |
151 "not_selected":not_selected_ppl, |
147 }) |
152 }) |
148 |
|
149 |
153 |
150 def confirm_wsp_participation(request, uid): |
154 def confirm_wsp_participation(request, uid): |
151 """ match id versus email and take lappy details. |
155 """ match id versus email and take lappy details. |
152 """ |
156 """ |
153 |
157 |