Skip to content
Snippets Groups Projects
Verified Commit 12d8370d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

FIx name clash.

parent 3c3f3f1d
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment