fixed a bug anoop
authornishanth
Mon, 26 Jul 2010 19:33:38 +0530
branchanoop
changeset 184 21ec3fa1d372
parent 183 3603ee3de179
child 185 3ab058807ef6
fixed a bug
sdi/events.py
sdi/views.py
--- a/sdi/events.py	Mon Jul 26 19:16:22 2010 +0530
+++ b/sdi/events.py	Mon Jul 26 19:33:38 2010 +0530
@@ -140,7 +140,7 @@
 FOSSEE, IIT Bombay.
     """%(user.first_name.title(), user.last_name.title(),message)
 
-    send_mail(subject, message, "sagedays@fossee.in", [user.email])
+    send_mail(subject, main_message, "sagedays@fossee.in", [user.email])
 
 def mail_invi(to_emails):
     """ send the invitation email to given email addresses.
--- 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})