]> git.parisson.com Git - teleforma.git/commitdiff
again
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 11 Jul 2014 17:19:57 +0000 (19:19 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 11 Jul 2014 17:19:57 +0000 (19:19 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail-fix.py

index fed1c1eb4bbdbed3a881fd245ee293049c89c573..22ca3d87617d7e8a05ce5c2bc97165e495c7c93a 100644 (file)
@@ -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