diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index e2be251c4c95289e13468e43ea36ed262ac46561..e3c9c50506426bb7a663d84cb4f39d69803bae92 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -174,7 +174,7 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse: group ).distinct().prefetch_related( 'documentations', 'personal_notes' - ) + ).all() weeks = CalendarWeek.weeks_within(group.school.current_term.date_start, group.school.current_term.date_end) periods_by_day = {}