diff options
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ class Room(models.Model): class CourseManager(GroupedManager): def __get_weeks(self, qs): extractYear = ExtractYear("begin") - qs = qs.group_by("groups", "year", "week").order_by("groups__name", "year", "week") + qs = qs.group_by("groups", "year", "week", "groups__timetable", "groups__mention", "groups__subgroup", "groups__td", "groups__tp", "begin", "groups__name").order_by("groups__name", "year", "week") if connection.vendor == "postgresql": return qs.annotate(week=ExtractWeek("begin"), year=extractYear) |