|"""Make :meth:`save` call :meth:`full_clean`.|
|This should be the left-most mixin/super-class of a model.|
|Do you think Django models ``save`` method will validate all fields|
|(i.e. call ``full_clean``) before saving or any time at all? Wrong!|
|I discovered this awful truth when 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.|
|* "Why doesn't django's model.save() call full clean?"|
|* "Model docs imply that ModelForm will call Model.full_clean(),|
|but it won't."|
|def save(self, *args, **kwargs):|
|"""Call :meth:`full_clean` before saving."""|
|super(ValidateModelMixin, self).save(*args, **kwargs)|
Have you found an answer to this? On how to validate also in query methods like update, etc?
Or whats the "final solution" for valid objects.