Django - calling full_clean() inside of clean() equivalent?
- by orokusaki
For transaction purposes, I need all field validations to run before clean() is done. Is this possible? My thinking is this:
@transaction.commit_on_success
def clean(self):
# Some fun stuff here.
self.full_clean() # I know this isn't correct, but it illustrates my point.
but obviously that's not correct, because it would be recursive. Is there a way to make sure that everything that full_clean() does is done inside clean()?