Skip to content

Commit

Permalink
Merge pull request #2779 from Randl/patch-1
Browse files Browse the repository at this point in the history
Fix docstring formatting
  • Loading branch information
bagerard authored Nov 21, 2023
2 parents a0ed25f + 4ba8bf2 commit f9eb279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongoengine/base/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9eb279

Please sign in to comment.