Skip to content
Snippets Groups Projects
Verified Commit 63826a5d authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show all groups in timetable view

parent e028f57d
No related branches found
No related tags found
1 merge request!301New data model based on calendar events
Pipeline #171699 failed
......@@ -106,10 +106,7 @@ def get_classes(user: "User"):
lessons_count=Count("lesson_events"),
child_lessons_count=Count("child_groups__lesson_events"),
)
.filter(
Q(lessons_count__gt=0, parent_groups=None)
| Q(child_lessons_count__gt=0, parent_groups=None)
)
.filter(Q(lessons_count__gt=0) | Q(child_lessons_count__gt=0))
.order_by("short_name", "name")
)
......
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