Skip to content

Commit

Permalink
Swap tutors and assistants as mail recipients
Browse files Browse the repository at this point in the history
The tutors should be the main recipients,
the assistants only the ones that get a copy.

Closes #96.
  • Loading branch information
TuringTux committed Nov 25, 2019
1 parent bbd2588 commit 42e820a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions muesli/web/viewsLecture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42e820a

Please sign in to comment.