fix: calcul nombre de pages dans chaque tab

This commit is contained in:
N3WT DE COMPET
2025-05-05 21:39:10 +02:00
parent 5927e48e65
commit 5440f5cbdb
3 changed files with 66 additions and 36 deletions

View File

@ -74,7 +74,6 @@ class RegisterFormView(APIView):
"""
# Récupération des paramètres
filter = request.GET.get('filter', '').strip()
search = request.GET.get('search', '').strip()
page_size = request.GET.get('page_size', None)
establishment_id = request.GET.get('establishment_id', None)
@ -98,7 +97,6 @@ class RegisterFormView(APIView):
registerForms_List = RegistrationForm.objects.filter(school_year=next_year)
elif filter == 'historical':
registerForms_List = RegistrationForm.objects.filter(school_year__in=historical_years)
registerForms_List = bdd.getObjects(RegistrationForm, 'status', RegistrationForm.RegistrationFormStatus.RF_VALIDATED)
else:
registerForms_List = None