sdi/views.py
branchanoop
changeset 159 f2f389e688fb
parent 158 f39310ac2245
child 160 2f01af211af9
equal deleted inserted replaced
158:f39310ac2245 159:f2f389e688fb
   182         for user in selected_users:
   182         for user in selected_users:
   183             user_info = user.registrantinfo_set.all()[0]
   183             user_info = user.registrantinfo_set.all()[0]
   184             user_info.status_of_accomodation = "2"
   184             user_info.status_of_accomodation = "2"
   185             user_info.save()
   185             user_info.save()
   186         
   186         
   187         return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users})
   187         return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users})
   188     else:
   188     else:
   189         return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl,
   189         return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl,
   190                                                         "selected_not_confirmed":selected_not_confirmed_ppl,
   190                                                         "selected_not_confirmed":selected_not_confirmed_ppl,
   191                                                         "selected_confirmed":selected_confirmed_ppl,
   191                                                         "selected_confirmed":selected_confirmed_ppl,
   192                                                         "not_selected":not_selected_ppl,
   192                                                         "not_selected":not_selected_ppl,