From 3ccf958f61684a795b4a2d81e9c6841ddff41df0 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 7 Dec 2013 00:28:46 +0100 Subject: [PATCH] more test --- .../management/commands/teleforma-message-all-seminar-users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5