summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-05-10 12:28:00 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-05-10 12:28:00 +0000
commit34587d8a2a5fd6cfd5fbe70b4b328a65d2407e0d (patch)
treeef62945047439e72494705d8af606e3aaf626863 /docs/ref
parentb82a5b9dd0041f81e3527eea1f254f381ad9ba1a (diff)
Fixed #13341 -- Clarified default arguments to the RegexValidator. Thanks to David Fischer for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/validators.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index b921f8cd3b..bbba84c7f9 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -59,13 +59,13 @@ methods.
``RegexValidator``
------------------
-.. class:: RegexValidator(regex=None, message=None, code=None)
+.. class:: RegexValidator(regex, message=None, code=None)
-.. attribute:: regex=None
+.. attribute:: regex
-The regular expression pattern to search for the provided ``value``. Raises a
-``ValidationError`` with ``message`` and ``code`` if no match is found. If
-no regex is specified, an empty string is used.
+The regular expression pattern to search for the provided ``value``,
+or a pre-compiled regular expression. Raises a ``ValidationError``
+with ``message`` and ``code`` if no match is found.
.. attribute:: message=None