]> git.parisson.com Git - teleforma.git/commitdiff
list all periods
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Tue, 5 Mar 2024 09:45:13 +0000 (10:45 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 7 Mar 2025 11:29:27 +0000 (12:29 +0100)
teleforma/views/core.py

index fbf11d0412a37b0ac9444f273ec4a1d623cae0a4..c7931ded727afba8194019619cb79cbbcb610cbc 100644 (file)
@@ -186,7 +186,7 @@ class PeriodAccessMixin(View):
     @jsonrpc_method('teleforma.get_period_list')
     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, is_open=True)]
+        return [period.name for period in Period.objects.all()]
 
 
 class PeriodListView(ListView, PeriodAccessMixin):