Merge pull request #1857 from bagerard/fix_doc_of_delete_write_concern

Fix .delete doc of **write_concern
This commit is contained in:
erdenezul
2018-08-30 21:28:59 +08:00
committed by GitHub

View File

@@ -585,9 +585,8 @@ class Document(BaseDocument):
:param signal_kwargs: (optional) kwargs dictionary to be passed to :param signal_kwargs: (optional) kwargs dictionary to be passed to
the signal calls. the signal calls.
:param write_concern: Extra keyword arguments are passed down which :param write_concern: Extra keyword arguments are passed down which
will be used as options for the resultant will be used as options for the resultant ``getLastError`` command.
``getLastError`` command. For example, For example, ``save(..., w: 2, fsync: True)`` will
``save(..., write_concern={w: 2, fsync: True}, ...)`` will
wait until at least two servers have recorded the write and wait until at least two servers have recorded the write and
will force an fsync on the primary server. will force an fsync on the primary server.