Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.6.x] Added an anchor for django.forms.Form.clean in docs

Backport of 8442268 from master
  • Loading branch information...
commit 7c5d43eea0d48f1c521c8f16b2d713b222407f90 1 parent 7836bd5
@timgraham timgraham authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  docs/ref/forms/validation.txt
View
2  docs/ref/forms/validation.txt
@@ -365,6 +365,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
Please sign in to comment.
Something went wrong with that request. Please try again.