# HG changeset patch # User nishanth # Date 1280153018 -19800 # Node ID 21ec3fa1d3729f8860030f06d19abfc14d14d98c # Parent 3603ee3de179af77b97e7727f1dfaf2ffa601cd9 fixed a bug diff -r 3603ee3de179 -r 21ec3fa1d372 sdi/events.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. diff -r 3603ee3de179 -r 21ec3fa1d372 sdi/views.py --- 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})