code: def delete_error_message(sender, instance, name, source, target, **kwargs):
      
      if source != StateMixin.States.ERRED:
          return
      instance.error_message = ''
      instance.save(update_fields=['error_message'])
docs: Delete error message if instance state changed from erred