Merge pull request #2043 from bagerard/fix_write_concern_in_save

Fix default write concern on save call that was overwriting connection WC
This commit is contained in:
erdenezul
2019-05-15 15:26:50 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -375,7 +375,7 @@ class Document(six.with_metaclass(TopLevelDocumentMetaclass, BaseDocument)):
self.validate(clean=clean)
if write_concern is None:
write_concern = {'w': 1}
write_concern = {}
doc = self.to_mongo()