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:13:52 -0400 |
| commit | 8442268869a691767788bcbb4df90ddb28abb8f2 (patch) | |
| tree | 94ce919f417af6221cb12105457619dd764d0e6d /docs/ref/forms | |
| parent | 58e4fe464cadeaab53b08511dceb5b0e2b82ebd1 (diff) | |
Added an anchor for django.forms.Form.clean in docs
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 c6d2722bf7..255b665c42 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -363,6 +363,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 |
