Commit f1f0c4f1 authored by Loic Bistuer's avatar Loic Bistuer
Browse files

Removed confusing paragraph from the docs.

This snippet wasn't particularly helpful as `add_error()` is described
in greater details in the following section.

Thanks Claude Paroz for the report.
parent 81477c91
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -326,13 +326,6 @@ write a cleaning method that operates on the ``recipients`` field, like so::
            # not.
            return data

Sometimes you may want to add an error message to a particular field from the
form's :meth:`~Form.clean()` method, in which case you can use
:meth:`~django.forms.Form.add_error()`. Note that this won't always be
appropriate and the more typical situation is to raise a ``ValidationError``
from , which is turned into a form-wide error that is available through the
:meth:`Form.non_field_errors() <django.forms.Form.non_field_errors>` method.

.. _validating-fields-with-clean:

Cleaning and validating fields that depend on each other