]> git.parisson.com Git - teleforma.git/commitdiff
fix student profile call (rm crfpa_student)
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 8 Jul 2013 11:26:56 +0000 (13:26 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 8 Jul 2013 11:26:56 +0000 (13:26 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py
teleforma/templates/postman/base_write.html
teleforma/templates/telemeta/inc/user_list.html

index d8380b318d38180beb60d64c9a95d1e43743cfb1..d0437343cec47fa866a763f025b4c92e5328fdb4 100644 (file)
@@ -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:
index 1cdfceca194beda5ff44b98e2aef7199ccf627c3..ea08e5c493baf5ca7961f6dc2c780bee3b5bbe20 100644 (file)
@@ -6,7 +6,7 @@
 <div id="postman" class="desk_messages">
 <h1>{% block pm_write_title %}{% endblock %}</h1>
 
-{% if user.crfpa_student.all or user.is_staff %}
+{% if user.student.all or user.is_staff %}
 <div style="padding-top: 0.5em;">
 
 <select id="_adminSelect" name="admins" onchange="update_recipients();">
index e4d9475e3077f867c4f9e575dbd3fdb5da987336..be273d36da4d8c75f9e095d375eda742da577a02 100644 (file)
@@ -34,8 +34,8 @@
      <td><a href="{% url teleforma-profile-detail user.username %}">{{ user.last_name }}</a></td>
      <td><a href="{% url teleforma-profile-detail user.username %}">{{ user.first_name }}</a></td>
 
-     {% if user.crfpa_student.get %}
-      {% with user.crfpa_student.get as student %}
+     {% if user.student.get %}
+      {% with user.student.get as student %}
         <td>{{ student.iej.name }}</td>
         <td>{{ student.training }}</td>
         <td>{{ student.procedure.code }}</td>