Explicitly set w:1 if None in save

This commit is contained in:
Ross Lawley 2013-06-05 12:14:22 +00:00
parent eb1df23e68
commit f8904a5504

View File

@ -202,7 +202,7 @@ class Document(BaseDocument):
self.validate(clean=clean)
if not write_concern:
write_concern = {}
write_concern = {"w": 1}
doc = self.to_mongo()