Make default value for format setting None, and force lms and cms to be explicit about a string default

This commit is contained in:
Calen Pennington
2013-03-12 10:16:14 -04:00
parent cfd7e6d214
commit 2a96c45677
6 changed files with 5 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ def toc_for_course(user, request, course, active_chapter, active_section, model_
if not section.lms.hide_from_toc:
sections.append({'display_name': section.display_name_with_default,
'url_name': section.url_name,
'format': section.lms.format,
'format': section.lms.format if section.lms.format is not None else '',
'due': section.lms.due,
'active': active,
'graded': section.lms.graded,