From: Guillaume Pellerin Date: Fri, 6 Dec 2013 23:28:46 +0000 (+0100) Subject: more test X-Git-Tag: 2.8.1-pro~473^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3ccf958f61684a795b4a2d81e9c6841ddff41df0;p=teleforma.git more test --- diff --git a/teleforma/management/commands/teleforma-message-all-seminar-users.py b/teleforma/management/commands/teleforma-message-all-seminar-users.py index e373badd..85972214 100644 --- a/teleforma/management/commands/teleforma-message-all-seminar-users.py +++ b/teleforma/management/commands/teleforma-message-all-seminar-users.py @@ -35,7 +35,7 @@ class Command(BaseCommand): auditor = user.auditor.all() professor = user.professor.all() - if auditor and not professor and user.is_active and user.email: + if auditor and not professor and user.is_active and user.email and seminar.expiry_date: auditor = auditor[0] seminars = auditor.seminars.all() for seminar in seminars: