Skip to content

Commit 9b73be2

Browse files
authored
Merge pull request #2313 from bagerard/DonQueso89-master
Improve docstring EmbeddedDocumentList (clone)
2 parents f5f8b73 + fd0095b commit 9b73be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mongoengine/base/datastructures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ def first(self):
289289

290290
def create(self, **values):
291291
"""
292-
Creates a new embedded document and saves it to the database.
292+
Creates a new instance of the EmbeddedDocument and appends it to this EmbeddedDocumentList.
293293
294294
.. note::
295-
The embedded document changes are not automatically saved
296-
to the database after calling this method.
295+
the instance of the EmbeddedDocument is not automatically saved to the database.
296+
You still need to call .save() on the parent Document.
297297
298298
:param values: A dictionary of values for the embedded document.
299299
:return: The new embedded document instance.

0 commit comments

Comments
 (0)