fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zmiana w menu na katalog.edukacjamedialna (compile locale)
[edumed.git]
/
wtem
/
management
/
commands
/
wtem_email_teachers.py
diff --git
a/wtem/management/commands/wtem_email_teachers.py
b/wtem/management/commands/wtem_email_teachers.py
index
3aba80d
..
e0986f8
100644
(file)
--- a/
wtem/management/commands/wtem_email_teachers.py
+++ b/
wtem/management/commands/wtem_email_teachers.py
@@
-5,7
+5,7
@@
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
-from
django.core.mail
import send_mail
+from
wtem.management.commands
import send_mail
from django.template.loader import render_to_string
from contact.models import Contact
from django.template.loader import render_to_string
from contact.models import Contact
@@
-40,10
+40,8
@@
class Command(BaseCommand):
def send_message(self, message, subject, email):
self.stdout.write('>>> sending to %s' % email)
send_mail(
def send_message(self, message, subject, email):
self.stdout.write('>>> sending to %s' % email)
send_mail(
- subject,
- message,
- getattr(settings, 'WTEM_CONTACT_EMAIL', 'no-reply@edukacjamedialna.edu.pl'),
- [email],
- fail_silently=False
+ subject = subject,
+ body = message,
+ to = [email]
)
)