sdi/views.py
branchanoop
changeset 155 c688c24392bf
parent 154 5cd25b1093ad
child 156 cebb6ffb5f83
equal deleted inserted replaced
154:5cd25b1093ad 155:c688c24392bf
   170     selected_not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
   170     selected_not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
   171                                                            registrantinfo__status_of_accomodation="2")
   171                                                            registrantinfo__status_of_accomodation="2")
   172     selected_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   172     selected_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   173                                                        registrantinfo__status_of_accomodation="3")
   173                                                        registrantinfo__status_of_accomodation="3")
   174     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   174     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   175                                                  registrantinfo__status_of_accomodation="4")
   175                                                  registrantinfo__status_of_accomodation="1")
   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():