--
Ticket URL: <https://code.djangoproject.com/ticket/32905>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Ties Jan Hefting
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:1>
* type: Cleanup/optimization => New feature
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
Seems reasonable (similar to #11776).
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:2>
* has_patch: 0 => 1
Old description:
> Forms add the `nonfield` CSS class for non field errors in ErrorClass
> instances. This is documented in a section on
> [https://docs.djangoproject.com/en/dev/topics/forms/#rendering-form-
> error-messages rendering form error messages]. Similarly, in FormSets I'd
> expect to see the `nonform` CSS class added for non form errors. This
> would allow a custom ErrorClass to make a distinction in form field
> errors, non field errors (forms) and non form errors (FormSets) when
> rendering error messages. Therefore I'd suggest to add this `nonform` CSS
> class and document it for developers to use.
New description:
Forms add the `nonfield` CSS class for non field errors in ErrorList
instances. This is documented in a section on
[https://docs.djangoproject.com/en/dev/topics/forms/#rendering-form-error-
messages rendering form error messages]. Similarly, in FormSets I'd expect
to see the `nonform` CSS class added for non form errors. This would allow
a custom ErrorList to make a distinction in form field errors, non field
errors (forms) and non form errors (FormSets) when rendering error
messages. Therefore I'd suggest to add this `nonform` CSS class and
document it for developers to use.
--
Comment:
[https://github.com/django/django/pull/14608 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:3>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:4>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"84400d2e9db7c51fee4e9bb04c028f665b8e7624" 84400d2e]:
{{{
#!CommitTicketReference repository=""
revision="84400d2e9db7c51fee4e9bb04c028f665b8e7624"
Fixed #32905 -- Added CSS class for non-form errors of formsets.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32905#comment:7>