Updated index creation now tied to Document class ((MongoEngine/mongoengine#102)
This commit is contained in:
@@ -48,4 +48,4 @@ class ConvertToNewInheritanceModel(unittest.TestCase):
|
||||
collection.drop_index(index)
|
||||
|
||||
# 5. Recreate indexes
|
||||
Animal.objects._ensure_indexes()
|
||||
Animal.ensure_indexes()
|
||||
|
||||
@@ -59,4 +59,4 @@ class TurnOffInheritanceTest(unittest.TestCase):
|
||||
collection.drop_index(index)
|
||||
|
||||
# 5. Recreate indexes
|
||||
Animal.objects._ensure_indexes()
|
||||
Animal.ensure_indexes()
|
||||
|
||||
Reference in New Issue
Block a user