mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[1.11.x] Fixed #27945 -- Clarified that RegexValidator searches with the regex.
Backport of 325db2a8c3
from master
This commit is contained in:
parent
b06855facd
commit
b406c3ea28
2 changed files with 4 additions and 4 deletions
|
@ -85,8 +85,8 @@ to, or in lieu of custom ``field.clean()`` methods.
|
|||
|
||||
.. attribute:: regex
|
||||
|
||||
The regular expression pattern to search for the provided ``value``,
|
||||
or a pre-compiled regular expression. By default, raises a
|
||||
The regular expression pattern to search for within the provided
|
||||
``value``, or a pre-compiled regular expression. By default, raises a
|
||||
:exc:`~django.core.exceptions.ValidationError` with :attr:`message`
|
||||
and :attr:`code` if a match is not found. That standard behavior can
|
||||
be reversed by setting :attr:`inverse_match` to ``True``, in which case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue