@classmethod
def ensure_indexes(cls):
    """
        Check&create if needed the Document's indexes in database
        """
    if cls.opts.indexes:
        cls.collection.create_indexes(cls.opts.indexes)
