]> git.parisson.com Git - teleforma.git/commitdiff
add correctors to pass init
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 14:29:32 +0000 (16:29 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 14:29:32 +0000 (16:29 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py

index 13e7941217fdadb3ee7da4f482f232be7106ef93..d1f68d770845c80fae597607c999e5cebf995eb7 100644 (file)
@@ -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)