Skip to content

Commit

Permalink
Merge pull request #2313 from bagerard/DonQueso89-master
Browse files Browse the repository at this point in the history
Improve docstring EmbeddedDocumentList (clone)
  • Loading branch information
bagerard authored Apr 26, 2020
2 parents f5f8b73 + fd0095b commit 9b73be2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongoengine/base/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ def first(self):

def create(self, **values):
"""
Creates a new embedded document and saves it to the database.
Creates a new instance of the EmbeddedDocument and appends it to this EmbeddedDocumentList.
.. note::
The embedded document changes are not automatically saved
to the database after calling this method.
the instance of the EmbeddedDocument is not automatically saved to the database.
You still need to call .save() on the parent Document.
:param values: A dictionary of values for the embedded document.
:return: The new embedded document instance.
Expand Down

0 comments on commit 9b73be2

Please sign in to comment.