From dcf294604a4b3c049bfb6429bcdfdd696851517a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 11 Jul 2014 19:19:57 +0200 Subject: [PATCH] again --- .../commands/teleforma-reset-all-passwords-with-mail-fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail-fix.py b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail-fix.py index fed1c1eb..22ca3d87 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail-fix.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail-fix.py @@ -48,11 +48,11 @@ class Command(BaseCommand): users = User.objects.all() translation.activate(self.language_code) + i = 0 for user in users: profile, c = Profile.objects.get_or_create(user=user) student = user.student.all() - i = 0 if student: if profile and user.is_active: trig = False -- 2.39.5