From b9bf61ce61ea933c3fefa05fa1ded8dfb1b445e5 Mon Sep 17 00:00:00 2001 From: Nick Smith Date: Thu, 11 Jun 2015 14:34:03 +0100 Subject: Used PEP 8 style indentation in forms docs. --- docs/ref/forms/validation.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/ref/forms/validation.txt') 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. -- cgit v1.3