From fbb65c22c8c25a7f372764cedb610ea2b6ec6374 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 5 Jan 2018 16:41:20 -0500 Subject: [PATCH] Fix typos in contentstore's mongo index keys "display_name" was specified as a key to two indexes, but items in the collection have the key "displayname" without an underscore. --- common/lib/xmodule/xmodule/contentstore/mongo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/contentstore/mongo.py b/common/lib/xmodule/xmodule/contentstore/mongo.py index 8482de5e27..bf3fa0645f 100644 --- a/common/lib/xmodule/xmodule/contentstore/mongo.py +++ b/common/lib/xmodule/xmodule/contentstore/mongo.py @@ -485,7 +485,7 @@ class MongoContentStore(ContentStore): [ ('_id.org', pymongo.ASCENDING), ('_id.course', pymongo.ASCENDING), - ('display_name', pymongo.ASCENDING) + ('displayname', pymongo.ASCENDING) ], sparse=True, background=True @@ -505,7 +505,7 @@ class MongoContentStore(ContentStore): [ ('content_son.org', pymongo.ASCENDING), ('content_son.course', pymongo.ASCENDING), - ('display_name', pymongo.ASCENDING) + ('displayname', pymongo.ASCENDING) ], sparse=True, background=True