From 9d53ad53e5b8ed526edadd109ea68b9dfc106798 Mon Sep 17 00:00:00 2001 From: Erdenezul Batmunkh Date: Fri, 10 May 2019 17:33:59 +0200 Subject: [PATCH] Remove save and reload from embeddeddocument --- mongoengine/document.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mongoengine/document.py b/mongoengine/document.py index 57364ae6..4f91401c 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -89,18 +89,6 @@ class EmbeddedDocument(six.with_metaclass(DocumentMetaclass, BaseDocument)): return data - def save(self, *args, **kwargs): - warnings.warn("EmbeddedDocument.save is deprecated and will be removed in a next version of mongoengine." - "Use the parent document's .save() or ._instance.save()", - DeprecationWarning, stacklevel=2) - self._instance.save(*args, **kwargs) - - def reload(self, *args, **kwargs): - warnings.warn("EmbeddedDocument.reload is deprecated and will be removed in a next version of mongoengine." - "Use the parent document's .reload() or ._instance.reload()", - DeprecationWarning, stacklevel=2) - self._instance.reload(*args, **kwargs) - class Document(six.with_metaclass(TopLevelDocumentMetaclass, BaseDocument)): """The base class used for defining the structure and properties of