Merge remote-tracking branch 'origin/korekturovatko_emaily'
This commit is contained in:
commit
38a079f8a1
1 changed files with 2 additions and 3 deletions
|
@ -126,13 +126,12 @@ class KorekturyView(generic.TemplateView):
|
|||
# parametry e-mailu
|
||||
odkaz = "https://mam.mff.cuni.cz:1443/korektury/{}/".format(oprava.pdf.pk)
|
||||
from_email = 'korekturovatko@mam.mff.cuni.cz'
|
||||
subject = u'Nová korektura od {}'.format(autor)
|
||||
subject = u'Nová korektura od {} v {}'.format(autor,
|
||||
oprava.pdf.nazev)
|
||||
text = u"Text komentáře:\n\n{}\n\n=== Konec textu komentáře ===\n\
|
||||
\nodkaz do korekturovátka: {}\n\
|
||||
\nVaše korekturovátko\n".format(text, odkaz)
|
||||
|
||||
print text
|
||||
|
||||
# Prijemci e-mailu
|
||||
emails = set()
|
||||
email = oprava.autor.user.email
|
||||
|
|
Loading…
Reference in a new issue