How to raise a ValidationError in the ModelForm’s save method in Django?
I want my ModelForm error handler to show validation errors from the save()
method just like they do in the clean()
method – i.e. as a warning on the admin form, instead of generating a 500 page.