From a151044049f565db29e274e04de078911349b2be Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Tue, 4 Oct 2016 19:51:50 +0200 Subject: [PATCH 1/2] korektury | neposilej autorovy textu e-mail --- korektury/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/korektury/views.py b/korektury/views.py index 66d87a30..5eb42bd1 100644 --- a/korektury/views.py +++ b/korektury/views.py @@ -136,9 +136,6 @@ class KorekturyView(generic.TemplateView): # Prijemci e-mailu emails = set() email = oprava.autor.user.email - # e-mail autora opravy (TODO odstranit z prijemcu) - if email: - emails.add(email) # nalezeni e-mailu na organizatory komentaru for komentar in oprava.komentar_set.all(): email = komentar.autor.user.email @@ -149,6 +146,9 @@ class KorekturyView(generic.TemplateView): email_zobpovedny = oprava.pdf.org.user.email if email_zobpovedny: emails.add(email_zobpovedny) + # odstran e-mail autora opravy + if email: + emails.discard(email) send_mail(subject, text, from_email, list(emails)) From d03f667c5ee09f8d4ef3eeaf9b6f3d52537315d5 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Tue, 4 Oct 2016 20:06:09 +0200 Subject: [PATCH 2/2] korekturovatko | oprava migrace po flake8 --- .../migrations/0015_auto_20161004_2005.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 korektury/migrations/0015_auto_20161004_2005.py diff --git a/korektury/migrations/0015_auto_20161004_2005.py b/korektury/migrations/0015_auto_20161004_2005.py new file mode 100644 index 00000000..c087a221 --- /dev/null +++ b/korektury/migrations/0015_auto_20161004_2005.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('korektury', '0014_add_org_to_pdf'), + ] + + operations = [ + migrations.AlterField( + model_name='korekturovanepdf', + name='org', + field=models.ForeignKey(default=None, blank=True, to='seminar.Organizator', help_text=b'Zodpov\xc4\x9bdn\xc3\xbd organiz\xc3\xa1tor za obsah', null=True), + ), + ]