From 4509dc03b05e69623d07179f8cc03042d7d2c7d2 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Wed, 12 Jun 2013 10:36:43 -0400 Subject: [PATCH] Pull and save pdf textbook information to/from the correct modulestore --- cms/djangoapps/contentstore/views/course.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 7ee431c5eb..99661c25a5 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -24,7 +24,8 @@ from xmodule.contentstore.content import StaticContent from contentstore.course_info_model import ( get_course_updates, update_course_updates, delete_course_update) from contentstore.utils import ( - get_lms_link_for_item, add_extra_panel_tab, remove_extra_panel_tab) + get_lms_link_for_item, add_extra_panel_tab, remove_extra_panel_tab, + get_modulestore) from models.settings.course_details import ( CourseDetails, CourseSettingsEncoder) @@ -428,7 +429,7 @@ def textbook_index(request, org, course, name): org, course, name: Attributes of the Location for the item to edit """ location = get_location_and_verify_access(request, org, course, name) - store = modulestore() + store = get_modulestore(location) course_module = store.get_item(location, depth=3) if request.is_ajax():