summaryrefslogtreecommitdiff
path: root/docs/ref/forms/validation.txt
diff options
context:
space:
mode:
authorNick Smith <nick.smith@torchbox.com>2015-06-11 14:34:03 +0100
committerTim Graham <timograham@gmail.com>2015-06-11 12:21:53 -0400
commitb9bf61ce61ea933c3fefa05fa1ded8dfb1b445e5 (patch)
treee48418747041555a250459384ebb11a348b5873b /docs/ref/forms/validation.txt
parent64033fd08535f8043557f53b62a348e093325286 (diff)
Used PEP 8 style indentation in forms docs.
Diffstat (limited to 'docs/ref/forms/validation.txt')
-rw-r--r--docs/ref/forms/validation.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index c19ae34c29..5f6db434f8 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -363,8 +363,10 @@ example::
if cc_myself and subject:
# Only do something if both fields are valid so far.
if "help" not in subject:
- raise forms.ValidationError("Did not send for 'help' in "
- "the subject despite CC'ing yourself.")
+ raise forms.ValidationError(
+ "Did not send for 'help' in the subject despite "
+ "CC'ing yourself."
+ )
In this code, if the validation error is raised, the form will display an
error message at the top of the form (normally) describing the problem.