From 7ac0b71270869c1d4afc7b1640e140bb0e4525b6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 18 Jul 2014 16:29:32 +0200 Subject: [PATCH] add correctors to pass init --- .../commands/teleforma-reset-all-passwords-with-mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5