diff options
Diffstat (limited to 'docs/topics/forms')
| -rw-r--r-- | docs/topics/forms/index.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index f3afac5ab9..8db24f68d0 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -292,6 +292,17 @@ over them:: </ol> {% endif %} +.. versionchanged:: 1.8 + +Non-field errors (and/or hidden field errors that are rendered at the top of +the form when using helpers like ``form.as_p()``) will be rendered with an +additional class of ``nonfield`` to help distinguish them from field-specific +errors. For example, ``{{ form.non_field_errors }}`` would look like:: + + <ul class="errorlist nonfield"> + <li>Generic validation error</li> + </ul> + Looping over the form's fields ------------------------------ |
