--- a/sdi/views.py Wed Jul 21 16:57:17 2010 +0530
+++ b/sdi/views.py Wed Jul 21 17:16:50 2010 +0530
@@ -164,7 +164,30 @@
""" display list of confirmed participants who requested for accomodation
and let the admin decide.
"""
- pass
+
+ rejected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
+ registrantinfo__status_of_accomodation="4")
+ selected_not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
+ registrantinfo__status_of_accomodation="2")
+ selected_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
+ registrantinfo__status_of_accomodation="3")
+ not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3",
+ registrantinfo__status_of_accomodation="4")
+
+ user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl)
+ form = UserSelectForm(user_choices, request.POST)
+
+ if request.method == "POST" and form.is_valid():
+ pass
+ else:
+ return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl,
+ "selected_not_confirmed":selected_not_confirmed_ppl,
+ "selected_confirmed":selected_confirmed_ppl,
+ "not_selected":not_confirmed_ppl,
+ })
+
+
+
def confirm_wsp_participation(request, uid):
""" match id versus email and take lappy details.