summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-02-20 19:09:09 -0500
committerTim Graham <timograham@gmail.com>2017-02-20 19:09:43 -0500
commitd53fc7614de81e342a97d5626a047a3cbf002554 (patch)
tree08235997b3da75efc74f6cf8d3441cf6635c893a /django/forms/fields.py
parent2a0d8ae9bd8b0e6f7df4ca060bb072b9b79594e1 (diff)
[1.11.x] Refs #23151 -- Removed RegexField's unused error_message parameter.
Should have been removed in b6ea1961eb6816dee4370fb0ebd49dba29478db1. Backport of afcf44c10108141e66a8aef0a3cbc151b1c16855 from master
Diffstat (limited to 'django/forms/fields.py')
-rw-r--r--django/forms/fields.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 74cc3a6552..168ea9673c 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -509,11 +509,9 @@ class DurationField(Field):
class RegexField(CharField):
- def __init__(self, regex, max_length=None, min_length=None, error_message=None, *args, **kwargs):
+ def __init__(self, regex, max_length=None, min_length=None, *args, **kwargs):
"""
regex can be either a string or a compiled regular expression object.
- error_message is an optional error message to use, if
- 'Enter a valid value' is too generic for you.
"""
kwargs.setdefault('strip', False)
super(RegexField, self).__init__(max_length, min_length, *args, **kwargs)