fix for non-sectioned lessons nav
[edumed.git] / catalogue / templatetags / catalogue_tags.py
index abaa524..32a5a0b 100755 (executable)
@@ -38,7 +38,7 @@ def section_box(section):
 def lesson_nav(lesson):
     if lesson.type == 'course':
         root = lesson.section
-        siblings = root.lesson_set.filter(type='course', level=lesson.level)
+        siblings = Lesson.objects.filter(type='course', level=lesson.level, section=root)
         mark_level = False
     else:
         root = None