From 114fd7636d2e9b821d3f8cae8eb288f49eae98b5 Mon Sep 17 00:00:00 2001 From: Akshen Date: Wed, 7 Jun 2017 12:44:26 +0530 Subject: Fixes old datesview - Previous dates which are not booked won't be shown to coordinator and instructor - Email sending to coordinator with attachments fixed - Contact Us email changed in Homepage --- workshop_app/send_mails.py | 8 +------- workshop_app/templates/workshop_app/edit_profile.html | 2 +- workshop_app/templates/workshop_app/index.html | 2 +- workshop_app/views.py | 7 ++++--- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/workshop_app/send_mails.py b/workshop_app/send_mails.py index a4e1e52..9c3e732 100644 --- a/workshop_app/send_mails.py +++ b/workshop_app/send_mails.py @@ -267,7 +267,7 @@ def send_email( request, call_on, subject = "FOSSEE Workshop booking confirmation on {0}".\ format(workshop_date) - msg = EmailMultiAlternatives(subject, message, SENDER_EMAIL, [request.user.email]) + msg = EmailMultiAlternatives(subject, message, SENDER_EMAIL, [other_email]) files = listdir(settings.MEDIA_ROOT) for f in files: @@ -344,9 +344,3 @@ def send_email( request, call_on, format(workshop_date), message=message, other_email=request.user.email ) - - else: - message = "Issue at Workshop Booking App please check" - send_mail("Issue At Workshop Booking App Mailing", message, SENDER_EMAIL, - ['your developer id'], fail_silently=False) - diff --git a/workshop_app/templates/workshop_app/edit_profile.html b/workshop_app/templates/workshop_app/edit_profile.html index 414b931..2c7aea3 100644 --- a/workshop_app/templates/workshop_app/edit_profile.html +++ b/workshop_app/templates/workshop_app/edit_profile.html @@ -8,7 +8,7 @@