Skip to content

Commit

Permalink
Merge pull request #97 from TuringTux/feature/swap-to-and-cc
Browse files Browse the repository at this point in the history
Swap tutors and assistants as mail recipients
  • Loading branch information
tynsh authored Nov 25, 2019
2 parents 0362504 + 42e820a commit 3edb634
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 3edb634

Please sign in to comment.