Description:
The function of this decorator will be called on to create or write actions on the record. In addition, the function is invoked whenever the named fields of the record are modified and the validations can be done for the fields in this function. Furthermore, it can be done by raising an exception message ValidationError when the validation fails.