From: Radek Czajka Date: Tue, 25 Feb 2014 16:02:01 +0000 (+0100) Subject: Fixes #3315: Lessons ordering. X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/0f6bc18f9d44b3286abb04510c094f75f011c227?ds=sidebyside;hp=873c22275a94e60243469f1b7f0eedb7b2e76f39 Fixes #3315: Lessons ordering. --- 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]