From d48643e0f03278d9bf903a57cd7bce4c30cc1f95 Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 13 Jul 2012 17:58:30 +0200 Subject: [PATCH] fix import --- .../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 c50286b2..cb1589e2 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py @@ -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) -- 2.39.5