Merge pull request #2313 from bagerard/DonQueso89-master

Improve docstring EmbeddedDocumentList (clone)
This commit is contained in:
Bastien Gérard
2020-04-26 22:33:39 +02:00
committed by GitHub

View File

@@ -289,11 +289,11 @@ class EmbeddedDocumentList(BaseList):
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.