Commit ee2b92ab by cahrens

Protect against no due property (as was there before).

parent 845e86b8
......@@ -11,7 +11,7 @@
<li class="${'active' if 'active' in section and section['active'] else ''} ${'graded' if 'graded' in section and section['graded'] else ''}">
<a href="${reverse('courseware_section', args=[course_id, chapter['url_name'], section['url_name']])}">
<p>${section['display_name']}</p>
<p class="subtitle">${section['format']} ${"due " + get_default_time_display(section['due']) if section['due'] else ''}</p>
<p class="subtitle">${section['format']} ${"due " + get_default_time_display(section['due']) if 'due' in section and section['due'] else ''}</p>
</a>
</li>
% endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment