diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index a56333cb65050c9cce5fe984455c05210b8204a2..04c9cc491d0039c44114fb08dab52e0d2f5e3da6 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -40,7 +40,7 @@ def lesson(request: HttpRequest, week: Optional[int] = None, period_id: Optional # Create all missing personal notes about members of all groups in lesson for group in lesson_period.lesson.groups.all(): - for person in group.members.all(): + for person in group.members.filter(is_active=True): note, created = PersonalNote.objects.get_or_create(person=person, lesson_period=lesson_period, week=wanted_week)