From a39a24abe15a0c8a746f2da9d05e08692e0e5f62 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 2 Dec 2022 17:44:13 +0800 Subject: [PATCH] fix eaxmple --- docs/guide/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/validation.rst b/docs/guide/validation.rst index e5b9ed662..866adc95f 100644 --- a/docs/guide/validation.rst +++ b/docs/guide/validation.rst @@ -19,7 +19,7 @@ out of the box. Validation runs when calling `.validate()` or `.save()` .. code-block:: python - from mongoengine import Document, EmailField + from mongoengine import Document, EmailField, IntField class User(Document): email = EmailField()