Merge pull request #22713 from akhilnarang/fix-docstring
fix(model/document): add missing parameters to docstring and fix return type annotation
This commit is contained in:
commit
497807cbbc
1 changed files with 7 additions and 1 deletions
|
|
@ -252,7 +252,13 @@ class Document(BaseDocument):
|
|||
This will check for user permissions and execute `before_insert`,
|
||||
`validate`, `on_update`, `after_insert` methods if they are written.
|
||||
|
||||
:param ignore_permissions: Do not check permissions if True."""
|
||||
:param ignore_permissions: Do not check permissions if True.
|
||||
:param ignore_links: Do not check validity of links if True.
|
||||
:param ignore_if_duplicate: Do not raise error if a duplicate entry exists.
|
||||
:param ignore_mandatory: Do not check missing mandatory fields if True.
|
||||
:param set_name: Name to set for the document, if valid.
|
||||
:param set_child_names: Whether to set names for the child documents.
|
||||
"""
|
||||
if self.flags.in_print:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue