From: Guillaume Pellerin Date: Fri, 18 Jul 2014 14:29:32 +0000 (+0200) Subject: add correctors to pass init X-Git-Tag: 1.1~400 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7ac0b71270869c1d4afc7b1640e140bb0e4525b6;p=teleforma.git add correctors to pass init --- diff --git a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py index 13e79412..d1f68d77 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py @@ -53,7 +53,8 @@ class Command(BaseCommand): profile, c = Profile.objects.get_or_create(user=user) student = user.student.all() professor = user.professor.all() - if student or professor: + quotas = user.quotas.all() + if student or professor or quotas: if profile and user.is_active: if not profile.init_password and user.email: self.init_password_email(user)