]> git.parisson.com Git - teleforma.git/commitdiff
more test
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 23:28:46 +0000 (00:28 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 23:28:46 +0000 (00:28 +0100)
teleforma/management/commands/teleforma-message-all-seminar-users.py

index e373baddcf9366dfa5d58ff948aa028b8489bc9a..8597221496dee78e0f461ea1c32157c17f8278de 100644 (file)
@@ -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: