sdi/views.py
branchanoop
changeset 186 a88fe014f9eb
parent 185 3ab058807ef6
child 193 9b2a63bb8d16
equal deleted inserted replaced
185:3ab058807ef6 186:a88fe014f9eb
   181     selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   181     selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
   182                                                        registrantinfo__status_of_accomodation="3")
   182                                                        registrantinfo__status_of_accomodation="3")
   183     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", 
   184                                                  registrantinfo__status_of_accomodation="1")
   184                                                  registrantinfo__status_of_accomodation="1")
   185 
   185 
   186     user_choices = list(selected_ppl) + list(not_selected_ppl)
   186     user_choices = list(rejected_ppl) + list(not_selected_ppl)
   187     form = SendAccoForm(user_choices, request.POST)
   187     form = SendAccoForm(user_choices, request.POST)
   188 
   188 
   189     if request.method == "POST" and form.is_valid():
   189     if request.method == "POST" and form.is_valid():
   190         selected_users = form.cleaned_data['selected_users']
   190         selected_users = form.cleaned_data['selected_users']
   191         message = form.cleaned_data['message']
   191         message = form.cleaned_data['message']