Skip to content
Snippets Groups Projects
Verified Commit cfd67a97 authored by Lloyd Meins's avatar Lloyd Meins :thought_balloon:
Browse files

Reformat code

parent 7dbb434e
No related branches found
No related tags found
1 merge request!169Resolve "Lesson topic not carried to previous lesson if entered in second lesson of a block"
Pipeline #7077 passed
......@@ -286,8 +286,7 @@ class LessonDocumentation(RegisterObjectRelatedMixin, ExtensibleModel):
Can be deactivated using site preference ``alsijil__carry_over``.
"""
all_periods_of_lesson = LessonPeriod.objects.filter(
lesson=self.lesson_period.lesson,
period__weekday=self.lesson_period.period.weekday,
lesson=self.lesson_period.lesson, period__weekday=self.lesson_period.period.weekday,
)
for period in all_periods_of_lesson:
lesson_documentation = period.get_or_create_lesson_documentation(
......
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