diff options
-rw-r--r-- | models.py | 2 | ||||
-rw-r--r-- | views.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -164,7 +164,7 @@ class CourseManager(Manager): .order_by("groups__name", "year", "week") \ .annotate(year=ExtractYear("begin"), week=ExtractWeek("begin")) \ - .values("groups__mention", + .values("groups__mention", "groups__semester", "groups__subgroup", "year", "week") @@ -47,6 +47,7 @@ def group_list(request, year_slug, timetable_slug): for group in groups: for group_week in groups_weeks: if group.corresponds_to(group_week["groups__mention"], + group_week["groups__semester"], group_week["groups__subgroup"]): if not hasattr(group, "weeks"): group.weeks = [] |