equal
deleted
inserted
replaced
176 |
176 |
177 user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl) |
177 user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl) |
178 form = UserSelectForm(user_choices, request.POST) |
178 form = UserSelectForm(user_choices, request.POST) |
179 |
179 |
180 if request.method == "POST" and form.is_valid(): |
180 if request.method == "POST" and form.is_valid(): |
181 pass |
181 selected_users = form.cleaned_data['selected_users'] |
|
182 for user in selected_users: |
|
183 user_info = user.registrantinfo_set.all()[0] |
|
184 user_info.status_of_attending_sagedays = "2" |
|
185 user_info.save() |
|
186 |
|
187 return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users}) |
182 else: |
188 else: |
183 return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl, |
189 return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl, |
184 "selected_not_confirmed":selected_not_confirmed_ppl, |
190 "selected_not_confirmed":selected_not_confirmed_ppl, |
185 "selected_confirmed":selected_confirmed_ppl, |
191 "selected_confirmed":selected_confirmed_ppl, |
186 "not_selected":not_selected_ppl, |
192 "not_selected":not_selected_ppl, |