summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Resende <andersonresende86@gmail.com>2016-06-26 21:07:42 -0300
committerTim Graham <timograham@gmail.com>2016-06-27 09:07:18 -0400
commitb752eae7004f2572784db37e0cd4ec473d7594de (patch)
tree9c450f55de2bb08a8a1a915ebd2a23b1a4760e83
parent7f249e73dd9a44f2554d43df17617ab8f9dd0c46 (diff)
[1.10.x] Fixed #26806 -- Triple quoted docstrings in docs/ref/forms/validation.txt.
Backport of 2032bcf18280a875a59a39cf85c226da0a310d11 from master
-rw-r--r--docs/ref/forms/validation.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index bb9a928c1a..b57f44cb6c 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -263,19 +263,16 @@ containing comma-separated email addresses. The full class looks like this::
class MultiEmailField(forms.Field):
def to_python(self, value):
- "Normalize data to a list of strings."
-
+ """Normalize data to a list of strings."""
# Return an empty list if no input was given.
if not value:
return []
return value.split(',')
def validate(self, value):
- "Check if value consists only of valid emails."
-
+ """Check if value consists only of valid emails."""
# Use the parent's handling of required fields, etc.
super(MultiEmailField, self).validate(value)
-
for email in value:
validate_email(email)