sdi/views.py
branchanoop
changeset 184 21ec3fa1d372
parent 183 3603ee3de179
child 185 3ab058807ef6
--- a/sdi/views.py	Mon Jul 26 19:16:22 2010 +0530
+++ b/sdi/views.py	Mon Jul 26 19:33:38 2010 +0530
@@ -188,12 +188,12 @@
 
     if request.method == "POST" and form.is_valid():
         selected_users = form.cleaned_data['selected_users']
+        message = form.cleaned_data['message']
         for user in selected_users:
             user_info = user.registrantinfo_set.all()[0]
             user_info.status_of_accomodation = "3"
             user_info.save()
-
-	    message = form.cleaned_data['message']
+	
 	    send_acco_confirm(user, message)
         
         return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users})