From: Guillaume Pellerin Date: Mon, 8 Jul 2013 11:26:56 +0000 (+0200) Subject: fix student profile call (rm crfpa_student) X-Git-Tag: 1.1~591 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ac1ff9dba224f00d4c3dea919525abe6d9d838bb;p=teleforma.git fix student profile call (rm crfpa_student) --- 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 %}