sdi/views.py
branchanoop
changeset 174 d979d1bc1c4e
parent 172 32c2b57c45f8
child 176 faa42e8fa399
equal deleted inserted replaced
173:25f8826bc6e4 174:d979d1bc1c4e
   168         return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, 
   168         return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, 
   169                                                 "not_confirmed":not_confirmed_ppl,
   169                                                 "not_confirmed":not_confirmed_ppl,
   170                                                 "not_selected":not_selected_ppl,
   170                                                 "not_selected":not_selected_ppl,
   171                                                })
   171                                                })
   172 
   172 
       
   173 @login_required
   173 def send_acco_confirm(request):
   174 def send_acco_confirm(request):
   174     """ display list of confirmed participants who requested for accomodation
   175     """ display list of confirmed participants who requested for accomodation
   175     and let the admin decide.
   176     and let the admin decide.
   176     """
   177     """
   177 
   178 
   178     rejected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   179     rejected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   179                                              registrantinfo__status_of_accomodation="4")
   180                                              registrantinfo__status_of_accomodation="4")
   180     selected_not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
   181     selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   181                                                            registrantinfo__status_of_accomodation="2")
       
   182     selected_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
       
   183                                                        registrantinfo__status_of_accomodation="3")
   182                                                        registrantinfo__status_of_accomodation="3")
   184     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   183     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   185                                                  registrantinfo__status_of_accomodation="1")
   184                                                  registrantinfo__status_of_accomodation="1")
   186 
   185 
   187     user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl)
   186     user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl)