Made style changes. anoop
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 06 Aug 2010 14:23:20 +0530
branchanoop
changeset 214 e76c56790872
parent 213 ffe5ef840fde
child 215 363d51e2cfa5
Made style changes.
sdi/views.py
--- a/sdi/views.py	Fri Aug 06 14:22:50 2010 +0530
+++ b/sdi/views.py	Fri Aug 06 14:23:20 2010 +0530
@@ -176,12 +176,15 @@
     and let the admin decide.
     """
 
-    rejected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", 
-                                             registrantinfo__status_of_accomodation="4")
-    selected_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="1")
+    rejected_ppl = Registrant.objects.filter(
+        registrantinfo__status_of_attending_sagedays ="3", 
+        registrantinfo__status_of_accomodation="3")
+    selected_ppl = Registrant.objects.filter(
+        registrantinfo__status_of_attending_sagedays ="3", 
+        registrantinfo__status_of_accomodation="2")
+    not_selected_ppl = Registrant.objects.filter(
+        registrantinfo__status_of_attending_sagedays ="3", 
+        registrantinfo__status_of_accomodation="1")
 
     user_choices = list(rejected_ppl) + list(not_selected_ppl)
     form = SendAccoForm(user_choices, request.POST)
@@ -193,15 +196,17 @@
             user_info = user.registrantinfo_set.all()[0]
             user_info.status_of_accomodation = "3"
             user_info.save()
-	
-	    send_acco_confirm_mail(user, message)
-        
-        return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users})
+
+        send_acco_confirm_mail(user, message)
+
+        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":selected_ppl,
-                                                        "not_selected":not_selected_ppl,
-                                                       })
+        return render_to_response("send_acco_cnf.html",
+                                  {"rejected": rejected_ppl,
+                                   "selected":selected_ppl,
+                                   "not_selected":not_selected_ppl,
+                                  })
 
 def confirm_wsp_participation(request, uid):
     """ match id versus email and take lappy details.