From 12d8370d9949eef3613dc9b2109413655422584c Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Sun, 10 Nov 2019 21:34:30 +0100 Subject: [PATCH] FIx name clash. --- biscuit/apps/alsijil/model_extensions.py | 2 +- biscuit/apps/alsijil/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/biscuit/apps/alsijil/model_extensions.py b/biscuit/apps/alsijil/model_extensions.py index e34dcc9bb..f29150ee2 100644 --- a/biscuit/apps/alsijil/model_extensions.py +++ b/biscuit/apps/alsijil/model_extensions.py @@ -48,7 +48,7 @@ def mark_absent(self, day: date, starting_period: Optional[int] = 0, absent=True @LessonPeriod.method -def personal_notes(self, wanted_week: CalendarWeek): +def get_personal_notes(self, wanted_week: CalendarWeek): # Find all persons in the associated groups that do not yet have a personal note for this lesson missing_persons = Person.objects.annotate( no_personal_notes=~Exists(PersonalNote.objects.filter( diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index f2d4a8b96..9e6538c11 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -50,7 +50,7 @@ def lesson(request: HttpRequest, year: Optional[int] = None, week: Optional[int] # Create a formset that holds all personal notes for all persons in this lesson - persons_qs = lesson_period.personal_notes(wanted_week) + persons_qs = lesson_period.get_personal_notes(wanted_week) personal_note_formset = PersonalNoteFormSet( request.POST or None, queryset=persons_qs, prefix='personal_notes') -- GitLab