equal
deleted
inserted
replaced
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'] |