Added kwargs to doc.save to help interop with django (#223, #270)

This commit is contained in:
Ross Lawley 2013-04-12 14:05:08 +00:00
parent 836dc96f67
commit 37740dc010
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Changelog
Changes in 0.7.10 Changes in 0.7.10
================= =================
- Added kwargs to doc.save to help interop with django (#223, #270)
- Fixed cloning querysets in PY3 - Fixed cloning querysets in PY3
- Int fields no longer unset in save when changed to 0 (#272) - Int fields no longer unset in save when changed to 0 (#272)
- Fixed ReferenceField query chaining bug fixed (#254) - Fixed ReferenceField query chaining bug fixed (#254)

View File

@ -164,7 +164,7 @@ class Document(BaseDocument):
def save(self, safe=True, force_insert=False, validate=True, def save(self, safe=True, force_insert=False, validate=True,
write_options=None, cascade=None, cascade_kwargs=None, write_options=None, cascade=None, cascade_kwargs=None,
_refs=None): _refs=None, **kwargs):
"""Save the :class:`~mongoengine.Document` to the database. If the """Save the :class:`~mongoengine.Document` to the database. If the
document already exists, it will be updated, otherwise it will be document already exists, it will be updated, otherwise it will be
created. created.