summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-08-08 14:13:39 -0400
committerTim Graham <timograham@gmail.com>2013-08-08 14:14:20 -0400
commit70cf70ad21feb2cec17b46c65cdf47b50a817657 (patch)
tree7043f3101f12af97903b3469277c73b1ed813ec3
parentd8dc2b123d31f309ced3d29b6c7467531619c7ae (diff)
[1.5.x] Added an anchor for django.forms.Form.clean in docs
Backport of 8442268869 from master
-rw-r--r--docs/ref/forms/validation.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index e89bce748f..6690ada202 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -272,6 +272,8 @@ write a cleaning method that operates on the ``recipients`` field, like so::
Cleaning and validating fields that depend on each other
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. method:: django.forms.Form.clean
+
Suppose we add another requirement to our contact form: if the ``cc_myself``
field is ``True``, the ``subject`` must contain the word ``"help"``. We are
performing validation on more than one field at a time, so the form's