def bulk_operation_signal_handler(sender, *args, **kwargs):
if sender in entity_registry.entity_registry:<EOL><INDENT>sync_entities()<EOL><DEDENT>
When a bulk operation has happened on a model, sync all the entities again.
NOTE - bulk syncing isn't turned on by default because of the consequences of it.
For example, a user may issue a simple update to a single model, which would trigger
syncing of all entities. It is up to the user to explicitly enable syncing on bulk
operations with turn_on_syncing(bulk=True)