#32160: Missing formset ManagementForm data not catched by is_valid
----------------------------------------+------------------------
               Reporter:  Claude Paroz  |          Owner:  nobody
                   Type:  Bug           |         Status:  new
              Component:  Forms         |        Version:  master
               Severity:  Normal        |       Keywords:
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+------------------------
 Currently, when validating formset in its `full_clean` method, missing or
 bad management form data is raising a ValidationError instead of
 populating the `self._non_form_errors`.

 This is problematic because we should be able to call formset.is_valid()
 without fearing it raising a validation exception (and wrapping it in a
 try/except clause to avoid crashes). In my opinion, is_valid() should
 return False and not raise an exception.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32160>
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.e32fe14987dfd954100c2147521e3c81%40djangoproject.com.

Reply via email to