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

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