]> git.parisson.com Git - teleforma.git/commitdiff
fix periode rpc
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 20 Nov 2023 15:19:15 +0000 (16:19 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 21 Nov 2023 11:08:01 +0000 (12:08 +0100)
teleforma/views/core.py

index 64f47b3f5aea96c8f6d6f9197b1aafa0728d5df1..bc1029ebf96e15719158577e791cb95084fb8798 100644 (file)
@@ -322,8 +322,8 @@ class PeriodAccessMixin(View):
         return super(PeriodAccessMixin, self).render_to_response(context)
 
     @jsonrpc_method('teleforma.get_period_list')
-    def get_period_list(request, department_id):
-        department = Department.objects.get(id=department_id)
+    def get_period_list(request, department_name):
+        department = Department.objects.get(name=department_name)
         return [period.name for period in Period.objects.filter(department=department)]