diff options
| author | Hong Xu <hong@topbug.net> | 2025-08-03 22:25:34 -0700 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2025-11-10 12:52:53 -0300 |
| commit | cdae63053009f497a07c2fe66844ef078f71dd2a (patch) | |
| tree | b4f7fad1f0c8814c72deceab3bbd76f75b150976 | |
| parent | fb2fb2de4dcd289db5de0b25ed36c88da5e3654d (diff) | |
[6.0.x] 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.
Backport of a4f76741340fb23566795e83f830a3f2d49acce0 from main.
| -rw-r--r-- | docs/ref/validators.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index 59eef7b35e..39b712695e 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -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. |
