1👍
✅
Formsets also have an errors
attribute that works identically to form.errors
.
However, it sounds like you’re trying to do validation in your view. You should add the custom validation to the formset itself using the clean
method, and raise forms.ValidationError
when the user input is invalid. See the Django formset documentation.
👤Will
Source:stackexchange.com