FWIW I was very surprised when I realized this problem. I couldn't understand 
why a model object with an email field (without `blank=True`) could be saved 
with an empty string as email address.

The way I dealt with this was creating a mixin (ValidateModelMixin) and adding 
it as left-most superclass in all the models where I needed 'full_clean' to be 
called before 'save'.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/2cb7893e-28e6-4a65-a882-671bcf26c50a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to