Skip to content
Snippets Groups Projects
Verified Commit 34f903ac authored by magicfelix's avatar magicfelix
Browse files

Provide unified coursebook for similar lessons

parent fb98e4ea
No related branches found
No related tags found
1 merge request!284Draft: Redesign entering of lesson documentation
...@@ -234,7 +234,7 @@ class Query(graphene.ObjectType): ...@@ -234,7 +234,7 @@ class Query(graphene.ObjectType):
return LessonDocumentation.objects.filter( return LessonDocumentation.objects.filter(
lesson_period_id__in=LessonPeriod.objects.filter( lesson_period_id__in=LessonPeriod.objects.filter(
lesson__in=lesson.equal_lessons lesson__in=lesson._equal_lessons
).values_list("id", flat=True) ).values_list("id", flat=True)
).order_by( ).order_by(
"-year", "-week", "-lesson_period__period__weekday", "-lesson_period__period__period" "-year", "-week", "-lesson_period__period__weekday", "-lesson_period__period__period"
......
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