Save a document without running post_save hook

Hi guys,

So I added an on_update hook for Item Group. It works fine.
But is there a way to bypass this hook in certain case ? One simple use case is ‘Save multiple Item Group’. I cannot let all the error/message pop up every time I save the doc.

Something like doc.save(no_hook=True)

Nathan

May be you should use validate instead of on_update to hook your method. And then while saving “Item Group”, you can set ignore_validate=True, it will not call validate method.

great, thanks! It works!