mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Used PEP 8 style indentation in forms docs.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user