parent
02b1aa7355
commit
12f884e3ac
2 changed files with 6 additions and 5 deletions
3
AUTHORS
3
AUTHORS
|
|
@ -93,4 +93,5 @@ that much better:
|
||||||
* Alvin Liang
|
* Alvin Liang
|
||||||
* andrewmlevy
|
* andrewmlevy
|
||||||
* Chris Faulkner
|
* Chris Faulkner
|
||||||
* Ashwin Purohit
|
* Ashwin Purohit
|
||||||
|
* Shalabh Aggarwal
|
||||||
|
|
@ -161,7 +161,7 @@ arguments can be set on all fields:
|
||||||
:attr:`help_text` (Default: None)
|
:attr:`help_text` (Default: None)
|
||||||
Optional help text to output with the field - used by form libraries
|
Optional help text to output with the field - used by form libraries
|
||||||
|
|
||||||
:attr:`verbose` (Default: None)
|
:attr:`verbose_name` (Default: None)
|
||||||
Optional human-readable name for the field - used by form libraries
|
Optional human-readable name for the field - used by form libraries
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -481,9 +481,9 @@ Shard keys
|
||||||
|
|
||||||
If your collection is sharded, then you need to specify the shard key as a tuple,
|
If your collection is sharded, then you need to specify the shard key as a tuple,
|
||||||
using the :attr:`shard_key` attribute of :attr:`-mongoengine.Document.meta`.
|
using the :attr:`shard_key` attribute of :attr:`-mongoengine.Document.meta`.
|
||||||
This ensures that the shard key is sent with the query when calling the
|
This ensures that the shard key is sent with the query when calling the
|
||||||
:meth:`~mongoengine.document.Document.save` or
|
:meth:`~mongoengine.document.Document.save` or
|
||||||
:meth:`~mongoengine.document.Document.update` method on an existing
|
:meth:`~mongoengine.document.Document.update` method on an existing
|
||||||
:class:`-mongoengine.Document` instance::
|
:class:`-mongoengine.Document` instance::
|
||||||
|
|
||||||
class LogEntry(Document):
|
class LogEntry(Document):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue