From 0f6bc18f9d44b3286abb04510c094f75f011c227 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 25 Feb 2014 17:02:01 +0100 Subject: [PATCH] Fixes #3315: Lessons ordering. --- catalogue/templatetags/catalogue_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/templatetags/catalogue_tags.py b/catalogue/templatetags/catalogue_tags.py index 5166298..698b51b 100755 --- a/catalogue/templatetags/catalogue_tags.py +++ b/catalogue/templatetags/catalogue_tags.py @@ -34,7 +34,7 @@ def level_box(level): by_course = defaultdict(lambda: defaultdict(list)) lesson_lists = [alist for alist in [ - list(level.lesson_set.exclude(type='appendix').order_by('section__order')), + list(level.lesson_set.exclude(type='appendix').order_by('section__order', 'order')), list(level.lessonstub_set.all()) ] if alist] -- 2.20.1