Skip to content
Snippets Groups Projects

Add better options to get previous or next lesson period

Merged Jonathan Weth requested to merge feature/next-prev-lesson-period into master
All threads resolved!
@@ -335,7 +335,7 @@ class LessonPeriod(ExtensibleModel):
"""Get previous lesson period of this lesson.
.. warning::
To use this property a week had to be annotated to the provided lesson period.
To use this property, the provided lesson period must be annotated with a week.
"""
return LessonPeriod.objects.filter(lesson=self.lesson).next_lesson(self, -1)
Loading