Fixes #3315: Lessons ordering.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Tue, 25 Feb 2014 16:02:01 +0000 (17:02 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Tue, 25 Feb 2014 16:02:01 +0000 (17:02 +0100)
catalogue/templatetags/catalogue_tags.py

index 5166298..698b51b 100755 (executable)
@@ -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]