From: yomguy Date: Tue, 29 Jan 2013 16:25:08 +0000 (+0100) Subject: fix init account X-Git-Tag: 1.1~650 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=23001e264e0897fab31d478737c59f24c4498d60;p=teleforma.git fix init account --- diff --git a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py index d0437343..d8380b31 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py @@ -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: