]> git.parisson.com Git - teleforma.git/commitdiff
fix import
authoryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 15:58:30 +0000 (17:58 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 15:58:30 +0000 (17:58 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py

index c50286b24002707d512145581ee5082b5b625b36..cb1589e22ff9d22d1ae48d4c261aee81027c9c5b 100644 (file)
@@ -36,7 +36,7 @@ class Command(BaseCommand):
         for user in users:
             profile, c = Profile.objects.get_or_create(user=user)
             student = user.student.all()
-            student = user.professor.all()
+            professor = user.professor.all()
             if profile and ( student or professor ) and user.is_active:
                 if not profile.init_password and user.email:
                     self.init_password_email(user)