diff --git a/seminar/models.py b/seminar/models.py index a15aaaf9..797a215c 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -641,7 +641,7 @@ class Cislo(SeminarModelBase): 'Vaše M&M\n'.format(odkaz) # Prijemci e-mailu - emaily = map(lambda r: r.osoba.email, aktivniResitele(self )) + emaily = map(lambda r: r.osoba.email, filter(lambda r: r.zasilat_cislo_emailem, aktivniResitele(self))) if not settings.POSLI_MAILOVOU_NOTIFIKACI: print("Poslal bych upozornění na tyto adresy: ", " ".join(emaily))