diff options
| author | seanfagan <seanfagandesign@gmail.com> | 2017-03-21 11:27:42 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-21 12:49:46 -0400 |
| commit | b406c3ea2889b386efc5d97999ff1de3c2ddf128 (patch) | |
| tree | 407e92c2d1461947f53e1b227f7140c7e0e2b478 /docs | |
| parent | b06855facdd0fd1eecae7bce75c815c8a6af19b6 (diff) | |
[1.11.x] Fixed #27945 -- Clarified that RegexValidator searches with the regex.
Backport of 325db2a8c3453a56db5e0df0eed37476eb67802d from master
Diffstat (limited to 'docs')
| -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 417df517a4..eeac982bdc 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -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 |
