1 {% url "catalogue_lessons" as lessons_url %}
2 {% for level, course_list in object_list %}
3 <section class="levelth" style="float: left;">{{ level }}:
5 {% for course in course_list %}
6 <li><a href="{{ lessons_url }}#{{ level.slug }}_{{ course.slug }}">
8 {{ course.accusative }}{% else %}
9 {{ course|lower }}{% endif %}</a>