Given the following test case:
from marrow.mongo import Document, Index
from marrow.mongo.field import String
class Base(Document):
foo = String()
_foo = Index('foo')
class Sub(Base):
bar = String()
_bar = Index('bar')
Indexes provided by this class and all subclasses should be made available as an attribute, and calls to create_collection or create_indexes should accept an additional argument (defaulting to True) to create subclass indexes in addition to the primary class indexes.
Given the following test case:
Indexes provided by this class and all subclasses should be made available as an attribute, and calls to
create_collectionorcreate_indexesshould accept an additional argument (defaulting toTrue) to create subclass indexes in addition to the primary class indexes.