From: Guillaume Pellerin Date: Tue, 7 Mar 2023 14:53:27 +0000 (+0100) Subject: fix professor X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4bbba8f4c5baf7deaf47404fb35e76463c92c21c;p=teleforma.git fix professor --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 515815ad..c628047f 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -711,7 +711,7 @@ class ProfessorListView(View): user.email = professor_dict['email'] user.save() - professor, c = Professor.objects.get_or_create(user=user, department=department) + professor, c = Professor.objects.get_or_create(user=user) for course_code in professor_dict['courses']: course = Course.objects.filter(code=course_code) if course: