@disable_for_loaddata
def ping_directories_handler(sender, **kwargs):
 entry = kwargs['instance']
 if (entry.is_visible and settings.SAVE_PING_DIRECTORIES):
  for directory in settings.PING_DIRECTORIES:
   DirectoryPinger(directory, [entry])

@ disable_for_loaddata def ping_directories_handler ( sender , ** kwargs ) : entry = kwargs [ 'instance' ] if ( entry . is_visible and settings . SAVE_PING_DIRECTORIES ) : for directory in settings . PING_DIRECTORIES : DirectoryPinger ( directory , [ entry ] )
ping directories when an entry is saved .