1 min readJan 3, 2019
The problems I see with implementing validation on the clean method are:
- They will only be called automatically by forms (django.forms and admin) — this is not always the case.
- To force validation on every save, you either have to be very discipline or override
save
. Overridingsave
can work but It means interfering with Django inner works (you have to ask your self, why didn’t Django just addclean
tosave
?). Also, external apps that rely on Djangosave
might not work as expected (ValidationError
is not an expected outcome ofobj.save()
).