]> git.parisson.com Git - teleforma.git/commitdiff
fix name
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:20:27 +0000 (17:20 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:20:27 +0000 (17:20 +0200)
teleforma/views/core.py

index b86b6499153c6680aeb6112b413162b5d513bf9a..4bc1ba9b29669b1d59545a8e0f1624a4b98ac54c 100644 (file)
@@ -216,7 +216,7 @@ class PeriodAccessMixin(View):
         for department in departments:
             url = 'https://' + department.domain + '/json/'
             s = ServiceProxy(url)
-            remote_list = s.teleforma.get_period_list(department.id)
+            remote_list = s.teleforma.get_period_list(department.name)
             if remote_list['result']:
                 for period_dict in remote_list['result']:
                     period, c = Period.objects.get_or_create(