From 4ba8bf24aeb42c854ec85378805ae471a5d5fd24 Mon Sep 17 00:00:00 2001 From: Evgenii Zheltonozhskii Date: Tue, 21 Nov 2023 10:59:49 +0200 Subject: [PATCH] Fix docstring formatting --- mongoengine/base/fields.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mongoengine/base/fields.py b/mongoengine/base/fields.py index 85a10ff23..037e916ff 100644 --- a/mongoengine/base/fields.py +++ b/mongoengine/base/fields.py @@ -59,11 +59,11 @@ def __init__( unique with (Creates an index). :param primary_key: Mark this field as the primary key ((Creates an index)). Defaults to False. :param validation: (optional) A callable to validate the value of the - field. The callable takes the value as parameter and should raise + field. The callable takes the value as parameter and should raise a ValidationError if validation fails :param choices: (optional) The valid choices - :param null: (optional) If the field value can be null when a default exist. If not set, the default value - will be used in case a field with a default value is set to None. Defaults to False. + :param null: (optional) If the field value can be null when a default exists. If not set, the default value + will be used in case a field with a default value is set to None. Defaults to False. :param sparse: (optional) `sparse=True` combined with `unique=True` and `required=False` means that uniqueness won't be enforced for `None` values (Creates an index). Defaults to False. :param **kwargs: (optional) Arbitrary indirection-free metadata for