mirror of
https://github.com/django/django.git
synced 2025-07-25 06:04:21 +00:00
Added an anchor for django.forms.Form.clean in docs
This commit is contained in:
parent
58e4fe464c
commit
8442268869
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue