Added indexes and Django use to docs

This commit is contained in:
Harry Marr
2010-01-07 23:54:57 +00:00
parent ef5815e4a5
commit 960aea2fd4
3 changed files with 50 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ class Document(BaseDocument):
maximum size of the collection in bytes. If :attr:`max_size` is not
specified and :attr:`max_documents` is, :attr:`max_size` defaults to
10000000 bytes (10MB).
Indexes may be created by specifying :attr:`indexes` in the :attr:`meta`
dictionary. The value should be a list of field names or tuples of field
names. Index direction may be specified by prefixing the field names with
a **+** or **-** sign.
"""
__metaclass__ = TopLevelDocumentMetaclass