]> git.parisson.com Git - teleforma.git/commitdiff
fix init account
authoryomguy <yomguy@parisson.com>
Tue, 29 Jan 2013 16:25:08 +0000 (17:25 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 29 Jan 2013 16:25:08 +0000 (17:25 +0100)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py

index d0437343cec47fa866a763f025b4c92e5328fdb4..d8380b318d38180beb60d64c9a95d1e43743cfb1 100644 (file)
@@ -34,7 +34,7 @@ class Command(BaseCommand):
         translation.activate(self.language_code)
         for user in users:
             profile, c = Profile.objects.get_or_create(user=user)
-            student = user.student.all()
+            student = user.crfpa_student.all()
             professor = user.professor.all()
             if student or professor:
                 if profile and user.is_active: