I need to raise an exception in a model's save method. I'm hoping that an exception exists that will be caught by any django ModelForm
that uses this model including the admin forms.
I tried raising django.forms.ValidationError
, but this seems to be uncaught by the admin forms. The model makes a remote procedure call at save time, and it's not known until this call if the input is valid.
Thanks, Pete