]> git.parisson.com Git - teleforma.git/commitdiff
fix rpc
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 23 May 2023 21:25:36 +0000 (23:25 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 23 May 2023 21:25:36 +0000 (23:25 +0200)
teleforma/views/core.py

index 57ac7083e310bdb9376178abdfa6ebcd8e780aad..9f635f50d05c2a3f72b302c47e872caa0eac29d1 100644 (file)
@@ -728,7 +728,7 @@ class ProfessorListView(View):
             if not professor in professors_new:
                 professor.delete()
 
-    @jsonrpc_method('teleforma.get_dep_professor')
+    @jsonrpc_method('teleforma.get_dep_professors')
     def get_dep_professors(request, id):
         department = Department.objects.get(id=id)
         return [p.to_json_dict() for p in Professor.objects.filter(department=department)]