fix: Always return document from doc.insert

This commit is contained in:
Ankush Menat 2023-10-13 15:34:03 +05:30
parent 497807cbbc
commit 52d6bd67e4

View file

@ -260,7 +260,7 @@ class Document(BaseDocument):
:param set_child_names: Whether to set names for the child documents.
"""
if self.flags.in_print:
return
return self
self.flags.notifications_executed = []