1
0
mirror of https://github.com/django/django.git synced 2025-04-18 06:14:37 +00:00

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

Backport of 8442268869 from master
This commit is contained in:
Tim Graham 2013-08-08 14:13:39 -04:00
parent d8dc2b123d
commit 70cf70ad21

@ -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