Changes between Initial Version and Version 3 of Ticket #32905


Ignore:
Timestamp:
Jul 7, 2021, 2:52:24 PM (3 years ago)
Author:
Ties Jan Hefting
Comment:

PR

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32905

    • Property Owner changed from nobody to Ties Jan Hefting
    • Property Easy pickings unset
    • Property Triage Stage UnreviewedAccepted
    • Property Type Cleanup/optimizationNew feature
    • Property Has patch set
  • Ticket #32905 – Description

    initial v3  
    1 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.
     1Forms 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.
Back to Top