1 2 3 4 5 6 7 8 | def clean(self): try: # do validation here except ValidationError, e: if blame_field: self._errors[blame_field] = e.messages else: raise e |
1 2 3 4 5 6 7 8 | def clean(self): try: # do validation here except ValidationError, e: if blame_field: self._errors[blame_field] = e.messages else: raise e |
Comments
This is how you can blame different fields for different errors:
#
oh.. I forgot to return the cleaned dictionary at the end. so there should be
after all.
#