Addressed review feedback

This commit is contained in:
Dave St.Germain
2020-03-06 16:12:07 -05:00
parent 28f33e1667
commit 49c5d5194b
3 changed files with 26 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ class CourseInfoSerializer(serializers.Serializer): # pylint: disable=abstract-
tabs = []
for priority, tab in enumerate(get_course_tab_list(course_overview.effective_user, course_overview)):
tabs.append({
'title': tab.title or tab.get('name'),
'title': tab.title or tab.get('name', ''),
'slug': tab.tab_id,
'priority': priority,
'type': tab.type,