diff --git a/biscuit/apps/alsijil/models.py b/biscuit/apps/alsijil/models.py index 7f992790bc2481713f794efd72566db9a9ee4b3c..e862e6bbfcbcd2e088d928b9b4e75a5b4f5da3ae 100644 --- a/biscuit/apps/alsijil/models.py +++ b/biscuit/apps/alsijil/models.py @@ -18,6 +18,7 @@ class PersonalNote(SchoolRelated): class Meta: unique_together = [['school', 'lesson_period', 'week', 'person']] + ordering = ['lesson_period__lesson__date_start', 'week', 'lesson_period__period__weekday', 'lesson_period__period__period', 'person__last_name', 'person__first_name'] class LessonDocumentation(SchoolRelated): @@ -29,3 +30,4 @@ class LessonDocumentation(SchoolRelated): class Meta: unique_together = [['school', 'lesson_period', 'week']] + ordering = ['lesson_period__lesson__date_start', 'week', 'lesson_period__period__weekday', 'lesson_period__period__period']