From 23001e264e0897fab31d478737c59f24c4498d60 Mon Sep 17 00:00:00 2001 From: yomguy Date: Tue, 29 Jan 2013 17:25:08 +0100 Subject: [PATCH] fix init account --- .../commands/teleforma-reset-all-passwords-with-mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5