fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix email to teachers (don't send to None)
[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
c8e95c3
..
b2f1314
100644
(file)
--- a/
wtem/management/commands/wtem_email_teachers.py
+++ b/
wtem/management/commands/wtem_email_teachers.py
@@
-12,7
+12,8
@@
class Command(BaseCommand):
sent = 0
failed = 0
sent = 0
failed = 0
- contacts = Contact.objects.filter(form_tag='olimpiada').order_by('contact').distinct('contact')
+ contacts = Contact.objects.filter(form_tag='olimpiada').exclude(contact=None).order_by('contact')\
+ .distinct('contact')
template_name = args[0]
emails = args[1:]
if emails:
template_name = args[0]
emails = args[1:]
if emails: