diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-08 14:13:39 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-08 14:14:14 -0400 |
| commit | 7c5d43eea0d48f1c521c8f16b2d713b222407f90 (patch) | |
| tree | 447cc2c0095ce17122916d8ae61936770fd854a5 /docs/ref/forms | |
| parent | 7836bd502c4d5d65728c1e9eb58bc137b316c6e5 (diff) | |
[1.6.x] Added an anchor for django.forms.Form.clean in docs
Backport of 8442268869 from master
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/validation.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index 87f9741c1b..0831a54c74 100644 --- a/docs/ref/forms/validation.txt +++ b/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 |
