From: Jan Szejko Date: Fri, 17 Nov 2017 15:29:28 +0000 (+0100) Subject: notify all teachers X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/f09fd4c98021b75d6d6c288537946703eb706d04?ds=sidebyside notify all teachers --- diff --git a/wtem/management/commands/notify_teachers.py b/wtem/management/commands/notify_teachers.py index 354ab43..127e204 100644 --- a/wtem/management/commands/notify_teachers.py +++ b/wtem/management/commands/notify_teachers.py @@ -25,7 +25,7 @@ class Command(BaseCommand): unconfirmed = [] for similar_contact in Contact.objects.filter(contact=contact.contact): unconfirmed += list(Confirmation.objects.filter( - contact=similar_contact, confirmed=False, contact__created_at__lt=threshold)) + contact=similar_contact, confirmed=False)) # contact__created_at__lt=threshold)) if not unconfirmed: continue message = render_to_string(message_template, {'unconfirmed': unconfirmed})