From 42e820af1d4cab6f63100e7484ce6d29ddb3c6a9 Mon Sep 17 00:00:00 2001 From: TuringTux <53300311+TuringTux@users.noreply.github.com> Date: Mon, 25 Nov 2019 17:33:32 +0100 Subject: [PATCH] Swap tutors and assistants as mail recipients The tutors should be the main recipients, the assistants only the ones that get a copy. Closes #96. --- muesli/web/viewsLecture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muesli/web/viewsLecture.py b/muesli/web/viewsLecture.py index b9c9b9d5..5910c47a 100644 --- a/muesli/web/viewsLecture.py +++ b/muesli/web/viewsLecture.py @@ -449,8 +449,8 @@ def emailTutors(request): tutors = lecture.tutors message = Message(subject=form['subject'], sender=request.user.email, - to= [assistant.email for assistant in lecture.assistants], - cc=[t.email for t in tutors], + to=[t.email for t in tutors], + cc=[assistant.email for assistant in lecture.assistants], body=form['body']) if request.POST['attachments'] not in ['', None]: message.attach(request.POST['attachments'].filename, data=request.POST['attachments'].file)