sdi/views.py
branchanoop
changeset 176 faa42e8fa399
parent 174 d979d1bc1c4e
child 178 f87248c912b4
--- a/sdi/views.py	Mon Jul 26 17:44:26 2010 +0530
+++ b/sdi/views.py	Mon Jul 26 17:46:36 2010 +0530
@@ -183,7 +183,7 @@
     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
                                                  registrantinfo__status_of_accomodation="1")
 
-    user_choices = list(rejected_ppl) + list(selected_not_confirmed_ppl) + list(not_selected_ppl)
+    user_choices = list(rejected_ppl) + list(selected_ppl) + list(not_selected_ppl)
     form = UserSelectForm(user_choices, request.POST)
 
     if request.method == "POST" and form.is_valid():
@@ -196,8 +196,7 @@
         return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users})
     else:
         return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl,
-                                                        "selected_not_confirmed":selected_not_confirmed_ppl,
-                                                        "selected_confirmed":selected_confirmed_ppl,
+                                                        "selected":selected_ppl,
                                                         "not_selected":not_selected_ppl,
                                                        })