]> git.parisson.com Git - teleforma.git/commitdiff
fix student
authoryomguy <yomguy@parisson.com>
Tue, 15 Jan 2013 11:05:19 +0000 (12:05 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 15 Jan 2013 11:05:19 +0000 (12:05 +0100)
teleforma/views/crfpa.py

index b0f271a895ce069003eb8694c47290c616e1fa19..e31667cca111d97cf58f2f759fa5889553bfa4b8 100644 (file)
@@ -43,7 +43,7 @@ def get_crfpa_courses(user, date_order=False, num_order=False):
         return courses
 
     professor = user.professor.all()
-    student = user.student.all()
+    student = user.crfpa_student.all()
 
     if professor:
         professor = user.professor.get()
@@ -51,7 +51,7 @@ def get_crfpa_courses(user, date_order=False, num_order=False):
                                   types=CourseType.objects.all())
 
     elif student:
-        student = user.student.get()
+        student = user.crfpa_student.get()
         s_courses = {student.procedure:student.training.procedure,
                            student.written_speciality:student.training.written_speciality,
                            student.oral_speciality:student.training.oral_speciality,