Skip to content

Commit 9d53ad5

Browse files
author
Erdenezul Batmunkh
committed
Remove save and reload from embeddeddocument
1 parent 9b02867 commit 9d53ad5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

mongoengine/document.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,6 @@ def to_mongo(self, *args, **kwargs):
8989

9090
return data
9191

92-
def save(self, *args, **kwargs):
93-
warnings.warn("EmbeddedDocument.save is deprecated and will be removed in a next version of mongoengine."
94-
"Use the parent document's .save() or ._instance.save()",
95-
DeprecationWarning, stacklevel=2)
96-
self._instance.save(*args, **kwargs)
97-
98-
def reload(self, *args, **kwargs):
99-
warnings.warn("EmbeddedDocument.reload is deprecated and will be removed in a next version of mongoengine."
100-
"Use the parent document's .reload() or ._instance.reload()",
101-
DeprecationWarning, stacklevel=2)
102-
self._instance.reload(*args, **kwargs)
103-
10492

10593
class Document(six.with_metaclass(TopLevelDocumentMetaclass, BaseDocument)):
10694
"""The base class used for defining the structure and properties of

0 commit comments

Comments
 (0)