On za, 2010-07-03 at 10:07 -0400, Sells, Fred wrote:

> I need to override the setter behavior of all the fields in all my
> models.  They all subclass from the same abstract model.
>
> Specifically if the fields already contains a special character (used
> to indicate "Not Applicable") I don' want to allow it to be changed. 

You're doing it wrong™

Input validation should be done at the point where you handle input,
that is in the forms you use for updating instances.
-- 
Dennis K.

They've gone to plaid!

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

Reply via email to