On 1/8/07, Rob Slotboom <[EMAIL PROTECTED]> wrote:
Given this save function in one of my models, I want to display an
error message in admin instead of a errorpage.

This code needs to be a custom validator attached to the field, rather
than being in the 'save' method; once you're at the point of calling
save(), all validation (and all chances to raise validation errors)
has passed.

--
"May the forces of evil become confused on the way to your house."
 -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to