def turn_off_syncing(for_post_save=True, for_post_delete=True, for_m2m_changed=True, for_post_bulk_operation=True):
if for_post_save:<EOL><INDENT>post_save.disconnect(save_entity_signal_handler, dispatch_uid='<STR_LIT>')<EOL><DEDENT>if for_post_delete:<EOL><INDENT>post_delete.disconnect(delete_entity_signal_handler, dispatch_uid='<STR_LIT>')<EOL><DEDENT>if for_m2m_changed:<EOL><INDENT>m2m_changed.disconnect(m2m_changed_entity_signal_handler, dispatch_uid='<STR_LIT>')<EOL><DEDENT>if for_post_bulk_operation:<EOL><INDENT>post_bulk_operation.disconnect(bulk_operation_signal_handler, dispatch_uid='<STR_LIT>')<EOL><DEDENT>
Disables all of the signals for syncing entities. By default, everything is turned off. If the user wants
to turn off everything but one signal, for example the post_save signal, they would do:

turn_off_sync(for_post_save=False)