From: Guillaume Pellerin Date: Thu, 4 Feb 2016 17:06:30 +0000 (+0100) Subject: fix sub X-Git-Tag: 1.1~73 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cfcc0b3c7eebc3e6c1c7f9fc70440c053fa27f2d;p=teleforma.git fix sub --- diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 403eceef..965393d1 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -56,7 +56,7 @@ class Command(BaseCommand): translation.activate(self.language_code) for student in students: - if student.is_subscribed and not student.confirmation_sent and not student.user.is_active and student.user.email and student.period == period: + if student.is_subscribed and not student.confirmation_sent and student.user.is_active and student.user.email and student.period == period: self.email(student) student.confirmation_sent = True student.save()