From ac1ff9dba224f00d4c3dea919525abe6d9d838bb Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 8 Jul 2013 13:26:56 +0200 Subject: [PATCH] fix student profile call (rm crfpa_student) --- .../commands/teleforma-reset-all-passwords-with-mail.py | 2 +- teleforma/templates/postman/base_write.html | 2 +- teleforma/templates/telemeta/inc/user_list.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 d8380b31..d0437343 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.crfpa_student.all() + student = user.student.all() professor = user.professor.all() if student or professor: if profile and user.is_active: diff --git a/teleforma/templates/postman/base_write.html b/teleforma/templates/postman/base_write.html index 1cdfceca..ea08e5c4 100644 --- a/teleforma/templates/postman/base_write.html +++ b/teleforma/templates/postman/base_write.html @@ -6,7 +6,7 @@

{% block pm_write_title %}{% endblock %}

-{% if user.crfpa_student.all or user.is_staff %} +{% if user.student.all or user.is_staff %}