I’d like to introduce an error message to a formset such that formset.non_form_errors()
captures it before the form renders.
Is this possible? How do I do that?
I’d like to introduce an error message to a formset such that formset.non_form_errors()
captures it before the form renders.
Is this possible? How do I do that?
According to Formsets | Django documentation | Django, the formset’s clean method produces the errors reported by non_form_errors
.
(See the example code in the docs.)