From: yomguy Date: Fri, 13 Jul 2012 15:58:30 +0000 (+0200) Subject: fix import X-Git-Tag: 0.7-dev~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d48643e0f03278d9bf903a57cd7bce4c30cc1f95;p=teleforma.git fix import --- 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)