def save_entity_signal_handler(sender, instance, **kwargs):
if instance.__class__ in entity_registry.entity_registry:<EOL><INDENT>sync_entities(instance)<EOL><DEDENT>if instance.__class__ in entity_registry.entity_watching:<EOL><INDENT>sync_entities_watching(instance)<EOL><DEDENT>
Defines a signal handler for saving an entity. Syncs the entity to
the entity mirror table.