From: Guillaume Pellerin Date: Mon, 18 May 2026 07:08:52 +0000 (+0200) Subject: add professors to student profile view X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2622500ef6d62e2453bc3dcf5c8687421271a850;p=teleforma.git add professors to student profile view --- diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index 8a7f2b54..facb22d6 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -1190,7 +1190,10 @@ class CRFPAProfileView(ProfileView): user = User.objects.get(username=username) payment = None profile = None - if user.username == request.user.username or request.user.is_superuser: + if user.username == request.user.username or + request.user.is_superuser or + request.user.professor.all(): + student = user.student.all() if student: try: