mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Clarified EmailValidator docs to specify it validates an email address.
Updated the EmailValidator docs in docs/ref/validators.txt to explicitly state that it validates an email address, to avoid confusion with validating email message content.
This commit is contained in:
parent
c4e07f94eb
commit
a4f7674134
1 changed files with 2 additions and 2 deletions
|
|
@ -133,8 +133,8 @@ to, or in lieu of custom ``field.clean()`` methods.
|
|||
:param code: If not ``None``, overrides :attr:`code`.
|
||||
:param allowlist: If not ``None``, overrides :attr:`allowlist`.
|
||||
|
||||
An :class:`EmailValidator` ensures that a value looks like an email, and
|
||||
raises a :exc:`~django.core.exceptions.ValidationError` with
|
||||
An :class:`EmailValidator` ensures that a value looks like an email
|
||||
address, and raises a :exc:`~django.core.exceptions.ValidationError` with
|
||||
:attr:`message` and :attr:`code` if it doesn't. Values longer than 320
|
||||
characters are always considered invalid.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue