MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / get_indexes_spec

Method get_indexes_spec

mongoengine/document.py:992–1001  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

990
991 # get the indexes spec for all the gathered classes
992 def get_indexes_spec(cls):
993 indexes = []
994
995 if cls._meta["index_specs"]:
996 index_spec = cls._meta["index_specs"]
997 for spec in index_spec:
998 spec = spec.copy()
999 fields = spec.pop("fields")
1000 indexes.append(fields)
1001 return indexes
1002
1003 indexes = []
1004 for klass in classes:

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected