def m2m_changed_entity_signal_handler(sender, instance, action, **kwargs):
if action == '<STR_LIT>' or action == '<STR_LIT>' or action == '<STR_LIT>':<EOL><INDENT>save_entity_signal_handler(sender, instance, **kwargs)<EOL><DEDENT>
Defines a signal handler for a manytomany changed signal. Only listens for the
post actions so that entities are synced once (rather than twice for a pre and post action).