mirror of
https://github.com/django/django.git
synced 2025-08-09 21:38:18 +00:00
[1.7.x] Fixed #22216 -- Added Form.non_field_errors to form API doc.
Backport of d2f4553d70
from master
This commit is contained in:
parent
5891fd3f89
commit
38679254bf
3 changed files with 17 additions and 6 deletions
|
@ -1274,7 +1274,8 @@ your test suite.
|
|||
|
||||
``field`` is the name of the field on the form to check. If ``field``
|
||||
has a value of ``None``, non-field errors (errors you can access via
|
||||
``form.non_field_errors()``) will be checked.
|
||||
:meth:`form.non_field_errors() <django.forms.Form.non_field_errors>`) will
|
||||
be checked.
|
||||
|
||||
``errors`` is an error string, or a list of error strings, that are
|
||||
expected as a result of form validation.
|
||||
|
@ -1295,7 +1296,8 @@ your test suite.
|
|||
|
||||
``field`` is the name of the field on the form to check. If ``field``
|
||||
has a value of ``None``, non-field errors (errors you can access via
|
||||
``form.non_field_errors()``) will be checked.
|
||||
:meth:`form.non_field_errors() <django.forms.Form.non_field_errors>`) will
|
||||
be checked.
|
||||
|
||||
``errors`` is an error string, or a list of error strings, that are
|
||||
expected as a result of form validation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue