From 015a36c85fa4d7457a97972428474278e68dd956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Mon, 19 Oct 2020 23:45:13 +0200 Subject: [PATCH] minor styling fix in .rst --- docs/guide/validation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/validation.rst b/docs/guide/validation.rst index e5a70d34..971f6eb5 100644 --- a/docs/guide/validation.rst +++ b/docs/guide/validation.rst @@ -12,7 +12,7 @@ the document fetched from the database that is not defined in your model). Built-in validation -================= +=================== Mongoengine provides different fields that encapsulate the corresponding validation out of the box. Validation runs when calling `.validate()` or `.save()` @@ -108,7 +108,7 @@ Skipping validation ==================== Although discouraged as it allows to violate fields constraints, if for some reason you need to disable -the validation and cleaning of a document when you call `.save()`, you can use `.save(validate=False)`. +the validation and cleaning of a document when you call :meth:`~mongoengine.document.Document.save`, you can use `.save(validate=False)`. .. code-block:: python