Skip to content
Snippets Groups Projects
Commit 7e1aaf78 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '121-next-prev-functions-for-persons-don-t-return-the-next-prev-lesson' into 'master'

Resolve "Next/prev functions for persons don't return the next/prev lesson"

Closes #121

See merge request !143
parents 9c92bdfc 0de18355
Branches 130-show-print-timetable-button-on-mobile-devices
No related tags found
1 merge request!143Resolve "Next/prev functions for persons don't return the next/prev lesson"
Pipeline #6698 canceled
......@@ -83,7 +83,7 @@ def lesson_periods_as_teacher(self):
@Person.method
def lessons_on_day(self, day: date):
"""Get all lessons of this person (either as participant or teacher) on the given day."""
return LessonPeriod.objects.order_by("period__period").on_day(day).filter_from_person(self)
return LessonPeriod.objects.on_day(day).filter_from_person(self).order_by("period__period")
@Person.method
......
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