From 0b3ae9052afef1414317ac54384b714c37abb68e Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Tue, 18 Sep 2012 19:19:08 -0400 Subject: [PATCH] Make the default topic a dict so it doesn't error on courses that don't specify topics --- lms/djangoapps/django_comment_client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 305f3d0929..476d5b0a6a 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -189,7 +189,7 @@ def initialize_discussion_info(course): "sort_key": entry["sort_key"], "start_date": entry["start_date"]} - default_topics = {'General': course.location.html_id()} + default_topics = {'General': {'id' :course.location.html_id()}} discussion_topics = course.metadata.get('discussion_topics', default_topics) for topic, entry in discussion_topics.items(): category_map['entries'][topic] = {"id": entry["id"],