#32905: Add `nonform` CSS class for non form errors in FormSets
------------------------------------------------+--------------------------
               Reporter:  Ties Jan Hefting      |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  assigned
              Component:  Forms                 |        Version:  dev
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+--------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32905>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.e6065d94937dccd395dfd080c63bef78%40djangoproject.com.

Reply via email to