Fix default write concern on save call that was overwriting connection wc

This commit is contained in:
Bastien Gérard
2019-05-05 23:37:12 +02:00
parent c1aff7a248
commit 9cdc3ebee6
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()