We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5f8b73 + fd0095b commit 9b73be2Copy full SHA for 9b73be2
mongoengine/base/datastructures.py
@@ -289,11 +289,11 @@ def first(self):
289
290
def create(self, **values):
291
"""
292
- Creates a new embedded document and saves it to the database.
+ Creates a new instance of the EmbeddedDocument and appends it to this EmbeddedDocumentList.
293
294
.. note::
295
- The embedded document changes are not automatically saved
296
- 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.
297
298
:param values: A dictionary of values for the embedded document.
299
:return: The new embedded document instance.
0 commit comments