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.
This commit is contained in:
committed by
Tyler Hallada
parent
f4a5a68568
commit
fbb65c22c8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user