Merge branch 'master' of github.com:MongoEngine/mongoengine into Pacu2-fix/add-dev-tools

This commit is contained in:
Bastien Gérard
2020-04-25 20:53:35 +02:00
46 changed files with 494 additions and 684 deletions

View File

@@ -153,7 +153,7 @@ inherited classes like so: ::
# 4. Remove indexes
info = collection.index_information()
indexes_to_drop = [key for key, value in info.iteritems()
indexes_to_drop = [key for key, value in info.items()
if '_types' in dict(value['key'])]
for index in indexes_to_drop:
collection.drop_index(index)