#32905: Add `nonform` CSS class for non form errors in FormSets -------------------------------------+------------------------------------- Reporter: Ties Jan Hefting | Owner: Ties Jan | Hefting Type: New feature | Status: assigned Component: Forms | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Ties Jan Hefting):
* 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> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.787dfffc0c4b64014824b630103593fd%40djangoproject.com.